| apps/bMiniApp/src/custom-tab-bar/index.tsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| apps/cMiniApp/src/custom-tab-bar/index.tsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
apps/bMiniApp/src/custom-tab-bar/index.tsx
@@ -68,8 +68,10 @@ const isLogin = useIsLogin(); const loginTipShowed = ref(false); const isClicking = ref(false); const switchTab = (url: string, index: number) => { if (isClicking.value) return; if (!isLogin.value && whitePageList.every((x) => x !== url)) { if (!loginTipShowed.value) { loginTipShowed.value = true; @@ -85,9 +87,14 @@ } return; } Taro.switchTab({ url }).then(() => { system.setTabIndex(index); }); isClicking.value = true; Taro.switchTab({ url }) .then(() => { system.setTabIndex(index); }) .finally(() => { isClicking.value = false; }); }; function goPublish() { apps/cMiniApp/src/custom-tab-bar/index.tsx
@@ -68,8 +68,10 @@ const isLogin = useIsLogin(); const loginTipShowed = ref(false); const isClicking = ref(false); const switchTab = (url: string, index: number) => { if (isClicking.value) return; if (!isLogin.value && whitePageList.every((x) => x !== url)) { if (!loginTipShowed.value) { loginTipShowed.value = true; @@ -85,9 +87,14 @@ } return; } Taro.switchTab({ url }).then(() => { system.setTabIndex(index); }); isClicking.value = true; Taro.switchTab({ url }) .then(() => { system.setTabIndex(index); }) .finally(() => { isClicking.value = false; }); }; function goPublish() {