提交 b8b33f8e authored 作者: lihuihui's avatar lihuihui

untracked files on master: 121c0921 Merge branch 'master' of…

untracked files on master: 121c0921 Merge branch 'master' of https://gitlab-pro.ezijing.com/ezijing-web/center-resource
上级
import { defineStore } from 'pinia'
import { getMapList } from '@/api/base'
interface IMapState {
id: string
key: string
name: string
remark: string
values: IValuesList[]
}
interface IValuesList {
data_dictionary_id: string
id: string
label: string
remark: string
sort: string
value: string
}
export const useMapStore = defineStore({
id: 'map',
state: () => {
return {
mapList: [] as IMapState | any
}
},
getters: {},
actions: {
async getMapList() {
const res = await getMapList()
this.mapList = res.data
}
}
})
useMapStore().getMapList()
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论