代码提示优化

This commit is contained in:
仲么了
2024-01-03 13:20:19 +08:00
parent 0a0304f913
commit 9f234dfa1e
17 changed files with 330 additions and 99 deletions

View File

@@ -11,7 +11,7 @@ export const useDictData = defineStore(
area: []
// 其他接口获取的字典,比如区域
})
const getBasicData = (code: string, arr: string) => {
const getBasicData = (code: string, arr?: string) => {
let list = []
list = state.basic.filter(item => item.code === code)[0]?.children || []
if (arr) {