登录组件基地址修改

This commit is contained in:
minimaxagent1 2025-07-29 17:56:31 +08:00
parent 5827bd02df
commit 25a01d399e
3 changed files with 8 additions and 4 deletions

View File

@ -54,6 +54,9 @@ Vue.prototype.wxLogin = async function(){
}); });
}) })
} }
Vue.prototype.$u.http.setConfig({
baseUrl: 'http://192.168.2.7:4501'
})
// #endif // #endif

View File

@ -104,7 +104,8 @@
"selectedColor": "#48893B", "selectedColor": "#48893B",
"borderStyle": "white", "borderStyle": "white",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [{ "list": [
{
"selectedIconPath": "/static/tabbar/oneactive.png", "selectedIconPath": "/static/tabbar/oneactive.png",
"iconPath": "/static/tabbar/one.png", "iconPath": "/static/tabbar/one.png",
"pagePath": "pages/index/index", "pagePath": "pages/index/index",

View File

@ -66,7 +66,7 @@
}; };
wxLoginAsync() wxLoginAsync()
.then(async (data) => { .then(async (data) => {
this.$u.post("/app/auth/wxLogin",data).then((res) => { this.$u.post("/wxLogin",data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log(res,'resres'); console.log(res,'resres');
wx.setStorageSync('token', res.token); wx.setStorageSync('token', res.token);