|
|
|
@ -18,27 +18,29 @@ import i18n from './lang' // Internationalization |
|
|
|
import './styles/common.scss'; |
|
|
|
import './styles/common.scss'; |
|
|
|
import basicBlock from './components/basic-block/main' |
|
|
|
import basicBlock from './components/basic-block/main' |
|
|
|
import basicContainer from './components/basic-container/main' |
|
|
|
import basicContainer from './components/basic-container/main' |
|
|
|
|
|
|
|
import website from '@/config/website'; |
|
|
|
|
|
|
|
|
|
|
|
Vue.use(router) |
|
|
|
Vue.use(router); |
|
|
|
Vue.use(VueAxios, axios) |
|
|
|
Vue.use(VueAxios, axios); |
|
|
|
Vue.use(Element, { |
|
|
|
Vue.use(Element, { |
|
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
|
}) |
|
|
|
}); |
|
|
|
Vue.use(window.AVUE, { |
|
|
|
Vue.use(window.AVUE, { |
|
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
|
i18n: (key, value) => i18n.t(key, value) |
|
|
|
}) |
|
|
|
}); |
|
|
|
//注册全局容器
|
|
|
|
//注册全局容器
|
|
|
|
Vue.component('basicContainer', basicContainer) |
|
|
|
Vue.component('basicContainer', basicContainer); |
|
|
|
Vue.component('basicBlock', basicBlock) |
|
|
|
Vue.component('basicBlock', basicBlock); |
|
|
|
// 加载相关url地址
|
|
|
|
// 加载相关url地址
|
|
|
|
Object.keys(urls).forEach(key => { |
|
|
|
Object.keys(urls).forEach(key => { |
|
|
|
Vue.prototype[key] = urls[key]; |
|
|
|
Vue.prototype[key] = urls[key]; |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
// 加载website
|
|
|
|
|
|
|
|
Vue.prototype.website = website; |
|
|
|
// 动态加载阿里云字体库
|
|
|
|
// 动态加载阿里云字体库
|
|
|
|
iconfontVersion.forEach(ele => { |
|
|
|
iconfontVersion.forEach(ele => { |
|
|
|
loadStyle(iconfontUrl.replace('$key', ele)); |
|
|
|
loadStyle(iconfontUrl.replace('$key', ele)); |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Vue.config.productionTip = false; |
|
|
|
Vue.config.productionTip = false; |
|
|
|
|
|
|
|
|
|
|
|
|