index.js
根
/
site-admin-iview /
main /
index.js
import { DaiVue, Vuex, Vue } from 'dai-vue';
import * as modules from './modules.js';
import config from './config/config.js';
import interceptor from './interceptor.js';
import store from './store.js';
import iview from 'view-design';
import daiVueIview from 'dai-vue-iview';
import './style.less';
import main from './page/index.vue';
var vm = DaiVue(
{
store,
data() {
return {};
},
methods: {},
created: function () {},
watch: {},
components: {},
//计算属性
computed: {
...Vuex.mapGetters(['vx_userInfo'])
}
},
{
//全局配置
config,
//引用的所有模块
modules: modules,
//主路由模块,可以是一个布局模块
main,
use: {
iview: { plugin: iview },
dialog: { plugin: daiVueIview }
},
//http 拦截器
interceptor
}
);
//挂载VUE
vm.$mount('#dai-app');
window.baseVue = vm;