|
@@ -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('模式更改')
|
|
|
}
|
|
|
})
|