优化
This commit is contained in:
@@ -51,10 +51,17 @@ export function showToast(title: string, { icon, duration, complete }: ToastOpti
|
||||
}
|
||||
|
||||
export function goPath(path: string) {
|
||||
uni.navigateTo({
|
||||
url: path
|
||||
}).then(r => {
|
||||
});
|
||||
if(path.includes('home/index') || path.includes('mall/index') || path.includes('qrcode/index') || path.includes('mine/index')) {
|
||||
uni.switchTab({
|
||||
url: path
|
||||
}).then(r => {
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: path
|
||||
}).then(r => {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function goLogin() {
|
||||
|
Reference in New Issue
Block a user