You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
import 'babel-polyfill'
|
|
import Vue from 'vue'
|
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
|
|
import ElementUI from 'element-ui'
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
Vue.use(ElementUI)
|
|
|
|
import '@/styles/index.scss' // global css
|
|
|
|
import App from './App'
|
|
import store from './store'
|
|
import router from './router'
|
|
|
|
import '@/icons' // icon
|
|
|
|
Vue.prototype.$userInfo = null // 用户信息
|
|
// 全局自定义组件
|
|
import Pagination from '@/components/pagination/index.vue'
|
|
Vue.component("Pagination", Pagination)
|
|
import tabsearch from '@/components/tab-search/index.vue'
|
|
Vue.component("tab-search", tabsearch)
|
|
import eimage from "@/components/E-image/index.vue"
|
|
Vue.component("eimage", eimage);
|
|
|
|
import Print from '@/utils/print' // 引入附件的js文件
|
|
Vue.use(Print) // 注册
|
|
|
|
let token = null;
|
|
token = GetQueryString("token")
|
|
|
|
|
|
function GetQueryString(name){
|
|
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
|
var r = window.location.search.substr(1).match(reg);
|
|
if(r!=null)return unescape(r[2]); return null;
|
|
}
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
})
|
|
|