index.js
根
/
main /
index.js
import { DaiVue } 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 { mapGetters } from 'vuex';
import './style.less';
window.baseVue = DaiVue(
{
el: '#dai-app',
store,
data() {
return {};
},
methods: {},
created: function () {},
watch: {},
components: {},
//计算属性
computed: {
...mapGetters(['vx_userInfo'])
}
},
{
//全局配置
config,
//引用的所有模块
modules: modules,
use: {
// Vant: { plugin: Vant }
},
//http 拦截器
interceptor
}
);