| | |
| | | // The Vue build version to load with the `import` command |
| | | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. |
| | | import Vue from 'vue' |
| | | import App from './App' |
| | | import router from './router' |
| | | import App from '@/App' |
| | | import router from '@/router' |
| | | import Vuex from 'vuex' |
| | | import axios from './config/axios_init' |
| | | import VueAxios from 'vue-axios' |
| | | // import axios from '@/config/axios_init' |
| | | import ElementUi from 'element-ui' |
| | | import 'element-ui/lib/theme-chalk/index.css' |
| | | import store from './store' |
| | | import store from '@/store' |
| | | import '@/css/reset.css' |
| | | import '@/css/index.css' |
| | | import '@/css/animate.css' |
| | | import '@/css/el_reset.css' |
| | | import '@/css/fonts.css' |
| | | import '@/js/main.js' |
| | | |
| | | import Service from '@/store/service.js' |
| | | import Header from "@/components/header.vue"; |
| | | Vue.component(Header.name, Header); // 头部组件 |
| | | |
| | |
| | | Vue.component(Footer.name, Footer); // 底部组件 |
| | | |
| | | // import '!style-loader!css-loader!less-loader!./less/base.less' |
| | | if (!localStorage.getItem('SessionUid')) { |
| | | localStorage.setItem('SessionUid', (() => { |
| | | let uuid = [] |
| | | let _options = '0123456789abcdefghigklmnopqrstuv' |
| | | for (let i = 0; i < 32; i++) { |
| | | uuid.push(_options.substr(Math.floor(Math.random() * 0x20), 1)) |
| | | } |
| | | return uuid.join('') |
| | | })()) |
| | | } |
| | | |
| | | Vue.config.productionTip = false |
| | | Vue.config.devtools = true |
| | | // Vue.prototype.$axios = axios |
| | | Vue.prototype.Service = new Service() |
| | | |
| | | Vue.use(VueAxios, axios); |
| | | Vue.use(ElementUi); |
| | | Vue.use(Vuex); |
| | | |
| | | window.GLOB = { |
| | | appkey: '202004041613277377A6A2456D34A4948AE84', |
| | | rduri: 'http://sso.mk9h.cn/webapi/dostars' |
| | | } |
| | | |
| | | /* eslint-disable no-new */ |
| | | new Vue({ |
| | | el: '#app', |