|
@@ -191,8 +191,11 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
onShow(() => {
|
|
|
+
|
|
|
+ const initIndex = userType === 1? 2:1;//默认选中待服务
|
|
|
+
|
|
|
const params = getApp().globalData.switchTabParams || {}
|
|
|
- tabKey.value = params.tabKey || 1
|
|
|
+ tabKey.value = params.tabKey || initIndex;
|
|
|
onChange(column.value[tabKey.value])
|
|
|
// 使用后建议清除参数,避免重复读取
|
|
|
getApp().globalData.switchTabParams = null
|