Skip to content

Commit dd4a77f

Browse files
committed
🐛 修复 sensitiveWord 在 IDEA 报错的问题
1 parent 6593c60 commit dd4a77f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/api/system/menu/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface MenuVO {
2020

2121
// 查询菜单(精简)列表
2222
export const getSimpleMenusList = () => {
23-
return request.get({ url: '/system/menu/list-all-simple' })
23+
return request.get({ url: '/system/menu/simple-list' })
2424
}
2525

2626
// 查询菜单列表

src/api/system/role/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const getRolePage = async (params: PageParam) => {
2424

2525
// 查询角色(精简)列表
2626
export const getSimpleRoleList = async (): Promise<RoleVO[]> => {
27-
return await request.get({ url: '/system/role/list-all-simple' })
27+
return await request.get({ url: '/system/role/simple-list' })
2828
}
2929

3030
// 查询角色详情

src/views/system/sensitiveWord/SensitiveWordForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<el-radio-group v-model="formData.status">
1515
<el-radio
1616
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
17-
:key="dict.value"
17+
:key="dict.value as number"
1818
:label="dict.value"
1919
>
2020
{{ dict.label }}

src/views/system/sensitiveWord/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<el-select v-model="queryParams.status" clearable placeholder="请选择启用状态">
3333
<el-option
3434
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
35-
:key="dict.value"
35+
:key="dict.value as number"
3636
:label="dict.label"
3737
:value="dict.value"
3838
class="!w-240px"

0 commit comments

Comments
 (0)