登录组件基地址修改
This commit is contained in:
parent
5827bd02df
commit
25a01d399e
7
main.js
7
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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user