Skip to content

Commit 2ceb3b9

Browse files
committed
🐛 修复 oauth2 在 IDEA 报错的问题
1 parent 5766dc8 commit 2ceb3b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/views/system/oauth2/client/ClientForm.vue

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

src/views/system/oauth2/client/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px">
2424
<el-option
2525
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
26-
:key="dict.value"
26+
:key="dict.value as number"
2727
:label="dict.label"
2828
:value="dict.value"
2929
/>
@@ -137,7 +137,7 @@ const queryParams = reactive({
137137
pageNo: 1,
138138
pageSize: 10,
139139
name: null,
140-
status: null
140+
status: undefined
141141
})
142142
const queryFormRef = ref() // 搜索的表单
143143

src/views/system/oauth2/token/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
>
2929
<el-option
3030
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
31-
:key="dict.value"
31+
:key="dict.value as number"
3232
:label="dict.label"
3333
:value="dict.value"
3434
/>
@@ -115,7 +115,7 @@ const queryParams = reactive({
115115
pageNo: 1,
116116
pageSize: 10,
117117
userId: null,
118-
userType: null,
118+
userType: undefined,
119119
clientId: null
120120
})
121121
const queryFormRef = ref() // 搜索的表单

0 commit comments

Comments
 (0)