Skip to content

Commit b103c40

Browse files
committed
🐛 修复 notice 在 IDEA 报错的问题
1 parent 1066551 commit b103c40

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/api/system/dict/dict.data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export type DictDataVO = {
1414
}
1515

1616
// 查询字典数据(精简)列表
17-
export const listSimpleDictData = () => {
18-
return request.get({ url: '/system/dict-data/list-all-simple' })
17+
export const getSimpleDictDataList = () => {
18+
return request.get({ url: '/system/dict-data/simple-list' })
1919
}
2020

2121
// 查询字典数据列表

src/api/system/mail/account/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export const deleteMailAccount = async (id: number) => {
3737

3838
// 获得邮箱账号精简列表
3939
export const getSimpleMailAccountList = async () => {
40-
return request.get({ url: '/system/mail-account/list-all-simple' })
40+
return request.get({ url: '/system/mail-account/simple-list' })
4141
}

src/store/modules/dict.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { store } from '../index'
44
import { DictDataVO } from '@/api/system/dict/types'
55
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
66
const { wsCache } = useCache('sessionStorage')
7-
import { listSimpleDictData } from '@/api/system/dict/dict.data'
7+
import { getSimpleDictDataList } from '@/api/system/dict/dict.data'
88

99
export interface DictValueType {
1010
value: any
@@ -45,7 +45,7 @@ export const useDictStore = defineStore('dict', {
4545
this.dictMap = dictMap
4646
this.isSetDict = true
4747
} else {
48-
const res = await listSimpleDictData()
48+
const res = await getSimpleDictDataList()
4949
// 设置数据
5050
const dictDataMap = new Map<string, any>()
5151
res.forEach((dictData: DictDataVO) => {
@@ -75,7 +75,7 @@ export const useDictStore = defineStore('dict', {
7575
},
7676
async resetDict() {
7777
wsCache.delete(CACHE_KEY.DICT_CACHE)
78-
const res = await listSimpleDictData()
78+
const res = await getSimpleDictDataList()
7979
// 设置数据
8080
const dictDataMap = new Map<string, any>()
8181
res.forEach((dictData: DictDataVO) => {

src/views/system/notice/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
>
2727
<el-option
2828
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
29-
:key="dict.value"
29+
:key="dict.value as number"
3030
:label="dict.label"
3131
:value="dict.value"
3232
/>

0 commit comments

Comments
 (0)