This commit is contained in:
白菜
2025-07-21 23:00:41 +08:00
parent 000c8fec25
commit b68f2608f3
13 changed files with 70 additions and 133 deletions

View File

@ -1,3 +1,4 @@
import {getAllSites} from '@/api/ems/zddt'
const ems = {
state: {
zdList:[],
@ -20,6 +21,14 @@ const ems = {
state.zdList = list || []
}
},
actions: {
getZdList({commit,state}){
return getAllSites().then(response => {
commit('SET_ZD_LIST', response?.data || [])
console.log('store action getZdList 获取站点数据',state.zdList)
})
}
}
}
export default ems