From 25a01d399eec063edb30e591130ba826d5483f6f Mon Sep 17 00:00:00 2001 From: minimaxagent1 Date: Tue, 29 Jul 2025 17:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=BB=84=E4=BB=B6=E5=9F=BA?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 7 +++++-- pages.json | 3 ++- pages/login/login.vue | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index c942412..dc597d4 100644 --- a/main.js +++ b/main.js @@ -23,8 +23,8 @@ Vue.use('tab-bar',tabbar) Vue.use(uView); Vue.use(cookies); -Vue.config.productionTip = false - +Vue.config.productionTip = false + Vue.prototype.$md5 = md5; @@ -54,6 +54,9 @@ Vue.prototype.wxLogin = async function(){ }); }) } +Vue.prototype.$u.http.setConfig({ + baseUrl: 'http://192.168.2.7:4501' +}) // #endif diff --git a/pages.json b/pages.json index c448f77..153e8a0 100644 --- a/pages.json +++ b/pages.json @@ -104,7 +104,8 @@ "selectedColor": "#48893B", "borderStyle": "white", "backgroundColor": "#ffffff", - "list": [{ + "list": [ + { "selectedIconPath": "/static/tabbar/oneactive.png", "iconPath": "/static/tabbar/one.png", "pagePath": "pages/index/index", diff --git a/pages/login/login.vue b/pages/login/login.vue index 2757948..64209e8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -66,7 +66,7 @@ }; wxLoginAsync() .then(async (data) => { - this.$u.post("/app/auth/wxLogin",data).then((res) => { + this.$u.post("/wxLogin",data).then((res) => { if (res.code == 200) { console.log(res,'resres'); wx.setStorageSync('token', res.token);