fix(mpuniapp): 支持根路径登录鉴权分发与业务端到端操作闭环
这个提交包含在:
@@ -21,7 +21,7 @@
|
||||
function routeOwnerHome() : void {
|
||||
if (getAuthToken() != '') {
|
||||
uni.switchTab({
|
||||
url: '/pages/owner/hall/index'
|
||||
url: '/pages/owner/card/index'
|
||||
})
|
||||
return
|
||||
}
|
||||
@@ -34,6 +34,18 @@
|
||||
// #ifdef APP
|
||||
routeOwnerHome()
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
if (typeof window !== 'undefined') {
|
||||
const hash = window.location.hash
|
||||
if (!hash || hash === '#' || hash === '#/' || hash === '') {
|
||||
if (getAuthToken() != '') {
|
||||
window.location.hash = '#/pages/owner/card/index'
|
||||
} else {
|
||||
window.location.hash = '#/pages/common/login'
|
||||
}
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
})
|
||||
|
||||
onAppShow((res : OnShowOptions) => {
|
||||
|
||||
在新工单中引用
屏蔽一个用户