From bd6229ebd9cb543a22944ecb1142fad92b675dce Mon Sep 17 00:00:00 2001 From: rk <94314517@qq.com> Date: 星期一, 13 十月 2025 14:26:25 +0800 Subject: [PATCH] bug 修复 --- small-program/main.js | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/small-program/main.js b/small-program/main.js index 21b38b8..a7204b7 100644 --- a/small-program/main.js +++ b/small-program/main.js @@ -10,9 +10,29 @@ Vue.prototype.$store = store; store.dispatch('getHeight') // 鑾峰彇绯荤粺鐘舵�佹爮楂樺害/鎵嬫満鍨嬪彿 - -const app = new Vue({ - ...App +Vue.prototype.$onLaunched = new Promise(resolve => { + Vue.prototype.$isResolve = resolve; }) +// Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/' +// Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/' + +// Vue.prototype.$baseUrl = 'https://test.doumee.cn/jinkuai_web/' +Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/' +import shareMixin from '@/utils/shareMixin' +Vue.mixin(shareMixin) +const app = new Vue({ + store, + ...App +}) + + +// http鎺ュ彛API鎶界 +import httpApi from '@/utils/http.api.js' +Vue.use(httpApi, app) + +// 璇锋眰鎷︽埅鍣� +import interceptor from '@/utils/http.interceptor.js' +Vue.use(interceptor, app) + app.$mount() \ No newline at end of file -- Gitblit v1.9.3