This commit is contained in:
yiqiuyang
2026-07-30 16:54:55 +08:00
parent 2b9a322335
commit 661ee7d7a3
6 changed files with 380 additions and 11 deletions
+7
View File
@@ -6,6 +6,7 @@ export const useNavStore = defineStore(
() => {
const navIndex = ref('/')
const showLoad = ref(true)
const isMobile = ref(window.innerWidth < 1000)
const changeNavIndex = (id) => {
if (!id) {
@@ -20,11 +21,17 @@ export const useNavStore = defineStore(
showLoad.value = status
}
const setIsMobile = (val) => {
isMobile.value = val
}
return {
navIndex,
showLoad,
isMobile,
changeNavIndex,
setLoad,
setIsMobile,
}
},
{