skyblued il y a 2 ans
Parent
commit
534cb40526
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      src/subpages/colexiu/tips/index.tsx

+ 7 - 7
src/subpages/colexiu/tips/index.tsx

@@ -20,9 +20,9 @@ export default defineComponent({
       () => {
         const isFirstTip = localStorage.getItem('isFirstTip')
         if (state.initRendered && modelType.value === 'init' && !isFirstTip) {
-        //   tipShow.value = true
-        //   guide.tip1 = true
-        //   guide.tip2 = false
+          tipShow.value = true
+          guide.tip1 = true
+          guide.tip2 = false
           console.log('首次渲染结束')
         }
       }
@@ -30,10 +30,10 @@ export default defineComponent({
     watch(modelType, () => {
       console.log(modelType.value)
       const isFirstModel = localStorage.getItem('isFirstModel')
-      if (modelType.value === 'practice' && !isFirstModel) {
-        // tipShow.value = true
-        // guide.tip1 = false
-        // guide.tip2 = true
+      if (state.initRendered && modelType.value === 'practice' && !isFirstModel) {
+        tipShow.value = true
+        guide.tip1 = false
+        guide.tip2 = true
         console.log('模式更改')
       }
     })