mall数据库文件
This commit is contained in:
@@ -149,6 +149,20 @@ export function responsiveState() {
|
||||
}
|
||||
}
|
||||
|
||||
export function goToLogin(redirectUrl?: string | null) {
|
||||
try {
|
||||
const target = redirectUrl != null && redirectUrl.length > 0 ? redirectUrl : ''
|
||||
if (target.length > 0) {
|
||||
const redirect = encodeURIComponent(target)
|
||||
uni.navigateTo({ url: `/pages/user/login?redirect=${redirect}` })
|
||||
} else {
|
||||
uni.navigateTo({ url: '/pages/user/login' })
|
||||
}
|
||||
} catch (e) {
|
||||
uni.navigateTo({ url: '/pages/user/login' })
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 兼容 UTS Android 的剪贴板写入
|
||||
* @param text 要写入剪贴板的文本
|
||||
|
||||
Reference in New Issue
Block a user