fix(miniprogram): stabilize synced order and design views

This commit is contained in:
lai_hong
2026-09-16 19:45:59 +08:00
parent a19519fee6
commit 0e6b0694e4
10 changed files with 186 additions and 34 deletions
+3 -2
View File
@@ -219,15 +219,16 @@ export default function ProfilePage() {
}
const handleQuickClick = (type: string) => {
Taro.hideToast()
switch (type) {
case 'toDesign':
Taro.setStorageSync('designList:filter', 'toDesign')
Taro.setStorageSync('designList:filter', 'undesigned')
Taro.switchTab({ url: '/pages/designList/index' })
Taro.eventCenter.trigger('tabBarChange', '/pages/designList/index')
break
case 'pending':
Taro.setStorageSync('orders:filter', 'pending')
Taro.switchTab({ url: '/pages/orders/index' })
Taro.eventCenter.trigger('tabBarChange', '/pages/orders/index')
break
case 'paid':
Taro.setStorageSync('orders:filter', 'paid')