1
This commit is contained in:
@@ -5,6 +5,7 @@ export const useNavStore = defineStore(
|
||||
'nav',
|
||||
() => {
|
||||
const navIndex = ref('/')
|
||||
const showLoad = ref(true)
|
||||
|
||||
const changeNavIndex = (id) => {
|
||||
if (!id) {
|
||||
@@ -14,9 +15,16 @@ export const useNavStore = defineStore(
|
||||
}
|
||||
}
|
||||
|
||||
const setLoad = (status) => {
|
||||
console.log('status===>', status)
|
||||
showLoad.value = status
|
||||
}
|
||||
|
||||
return {
|
||||
navIndex,
|
||||
showLoad,
|
||||
changeNavIndex,
|
||||
setLoad,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user