vuex模块化及axios代理重新整理

This commit is contained in:
aixianling
2022-06-10 16:14:13 +08:00
parent 7cbe10ff64
commit 1218536e64
9 changed files with 174 additions and 158 deletions

View File

@@ -28,9 +28,8 @@ Vue.prototype.$dayjs = dayjs
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
utils.dict.init({instance: axios})
utils.action.init(axios)
App.mpType = 'app';
// process.env.NODE_ENV == 'development' && new VConsole();
process.env.NODE_ENV == 'development' && new VConsole();
const app = new Vue({
store,
...App