This commit is contained in:
parent
f739e898fa
commit
adb80b05c2
|
@ -20,8 +20,8 @@
|
||||||
this.http.request('/auth/logout', {}, "GET").then(res => {
|
this.http.request('/auth/logout', {}, "GET").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: "/pages/pageHome/shwxLogin", //h5
|
// url: "/pages/pageHome/shwxLogin", //h5
|
||||||
// url: '/pagesC/Login/Login' //小程序
|
url: '/pagesC/Login/Login' //小程序
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
|
|
@ -7,8 +7,8 @@ export default {
|
||||||
config: {
|
config: {
|
||||||
// baseUrl: "http://192.168.2.48:8080/h5/api", //俞燕红-小程序不能配跨域
|
// baseUrl: "http://192.168.2.48:8080/h5/api", //俞燕红-小程序不能配跨域
|
||||||
// baseUrl: "/pre", //俞燕红-跨域
|
// baseUrl: "/pre", //俞燕红-跨域
|
||||||
// baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
||||||
baseUrl: "/h5/api", //h5
|
// baseUrl: "/h5/api", //h5
|
||||||
header: {
|
header: {
|
||||||
'Content-Type': 'application/json;charset=UTF-8',
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||||
|
@ -104,8 +104,8 @@ export default {
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url: '/pagesC/Login/Login' //小程序跳转
|
url: '/pagesC/Login/Login' //小程序跳转
|
||||||
url: '/pages/pageHome/shwxLogin' //h5-山海万象跳转
|
// url: '/pages/pageHome/shwxLogin' //h5-山海万象跳转
|
||||||
})
|
})
|
||||||
}, 1200)
|
}, 1200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue