This commit is contained in:
dev
2025-10-28 09:25:46 +08:00
commit 9431e325df
1089 changed files with 143917 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import {
defineStore
} from 'pinia';
import {
getDictData
} from '../api/charge/system'
const useDictStore = defineStore('dict', {
state: () => {
return {
'station_type': [],
'station_eigenvalue': []
}
},
actions: {
getDictData() {
Object.keys(this.$state).forEach(type => {
getDictData({
type
}).then(res => {
this[type] = res.data
})
})
}
}
})
export default useDictStore