1
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user