mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-04-30 22:29:01 +08:00
refactor: 操作指引改成非自动触发
This commit is contained in:
parent
82748abcc3
commit
70c2098d2e
@ -40,7 +40,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { lStorage } from '@/utils'
|
|
||||||
import Vue3IntroStep from 'vue3-intro-step'
|
import Vue3IntroStep from 'vue3-intro-step'
|
||||||
|
|
||||||
const myIntroStep = shallowRef(null)
|
const myIntroStep = shallowRef(null)
|
||||||
@ -101,19 +100,11 @@ const config = {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
if (lStorage.get('beginner-guide') === true)
|
|
||||||
return
|
|
||||||
show.value = true
|
|
||||||
})
|
|
||||||
|
|
||||||
function skip() {
|
function skip() {
|
||||||
lStorage.set('beginner-guide', true)
|
|
||||||
show.value = false
|
show.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
function done() {
|
function done() {
|
||||||
lStorage.set('beginner-guide', true)
|
|
||||||
show.value = false
|
show.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user