Browse Source

🐛 修复 oauth2 在 IDEA 报错的问题

YunaiV 1 year ago
parent
commit
2ceb3b978c

+ 1 - 1
src/views/system/oauth2/client/ClientForm.vue

@@ -26,7 +26,7 @@
         <el-radio-group v-model="formData.status">
           <el-radio
             v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
-            :key="dict.value"
+            :key="dict.value as number"
             :label="dict.value"
           >
             {{ dict.label }}

+ 2 - 2
src/views/system/oauth2/client/index.vue

@@ -23,7 +23,7 @@
         <el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px">
           <el-option
             v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
-            :key="dict.value"
+            :key="dict.value as number"
             :label="dict.label"
             :value="dict.value"
           />
@@ -137,7 +137,7 @@ const queryParams = reactive({
   pageNo: 1,
   pageSize: 10,
   name: null,
-  status: null
+  status: undefined
 })
 const queryFormRef = ref() // 搜索的表单
 

+ 2 - 2
src/views/system/oauth2/token/index.vue

@@ -28,7 +28,7 @@
         >
           <el-option
             v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
-            :key="dict.value"
+            :key="dict.value as number"
             :label="dict.label"
             :value="dict.value"
           />
@@ -115,7 +115,7 @@ const queryParams = reactive({
   pageNo: 1,
   pageSize: 10,
   userId: null,
-  userType: null,
+  userType: undefined,
   clientId: null
 })
 const queryFormRef = ref() // 搜索的表单