This commit is contained in:
duanliang
2025-05-08 20:17:16 +08:00
parent 5bf17c6b3b
commit 3081fee3b6
14 changed files with 627 additions and 42 deletions

View File

@@ -2,6 +2,7 @@ import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useHomeStore = defineStore('home', () => {
let amplify = ref(true)
// 景区信息数据
let scenicData = ref({
scenicSpot: [
@@ -110,7 +111,9 @@ export const useHomeStore = defineStore('home', () => {
{ name: '停车异常', value: 0 },
{ name: '舆论异常', value: 0 }
])
const setAmplify = (val)=>{
amplify.value = val
}
const setNotifyInfo = (val) => {
notifyInfo.value = val
}
@@ -158,6 +161,7 @@ export const useHomeStore = defineStore('home', () => {
userPortraitData.value = val
}
return {
amplify,
trainData,
setTrainData,
scenicData,
@@ -187,6 +191,7 @@ export const useHomeStore = defineStore('home', () => {
setTrafficInfoData,
setCarStopInfoData,
setCarShipData,
setHotelData
setHotelData,
setAmplify,
}
})