全局增加接口工具类

This commit is contained in:
aixianling
2022-05-06 17:34:31 +08:00
parent 5e3424365a
commit 84bd68fa2a
4 changed files with 33 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ 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();
const app = new Vue({