优化小程序登录跳转部分代码.新增全局条件编译跳转方法

This commit is contained in:
lemon橪
2021-08-17 11:53:56 +08:00
parent 3d1e175194
commit d76bab4b71
12 changed files with 68 additions and 41 deletions

View File

@@ -77,9 +77,17 @@ function cleanStorage() {
storage.setUuid("");
storage.setUserInfo({});
// #ifdef MP-WEIXIN
uni.navigateTo({
url: "/pages/passport/wechatMPLogin",
});
// #endif
// #ifndef MP-WEIXIN
uni.navigateTo({
url: "/pages/passport/login",
});
// #endif
}
let http = new Request();