Commit 753d8dda73e6a3d746abac5ac3c2ebe5f458f4c6

Authored by xingyu4j
1 parent 45a9a5a3

fix: eslint

yudao-ui-admin-vue3/src/components/Qrcode/src/Qrcode.vue
... ... @@ -64,7 +64,7 @@ const initQrcode = async () => {
64 64 options.errorCorrectionLevel || getErrorCorrectionLevel(unref(renderText))
65 65 const _width: number = await getOriginWidth(unref(renderText), options)
66 66 options.scale = props.width === 0 ? undefined : (props.width / _width) * 4
67   - const canvasRef: HTMLCanvasElement = await toCanvas(
  67 + const canvasRef: HTMLCanvasElement | any = await toCanvas(
68 68 unref(wrapRef) as HTMLCanvasElement,
69 69 unref(renderText),
70 70 options
... ...
yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
... ... @@ -64,8 +64,8 @@
64 64 <el-form-item label="存储器" prop="storage">
65 65 <el-select v-model="form.storage" placeholder="请选择存储器" :disabled="form.id !== 0">
66 66 <el-option
67   - v-for="dict in getIntDictOptions(DICT_TYPE.INFRA_FILE_STORAGE)"
68   - :key="dict.value"
  67 + v-for="(dict, index) in getIntDictOptions(DICT_TYPE.INFRA_FILE_STORAGE)"
  68 + :key="index"
69 69 :label="dict.label"
70 70 :value="dict.value"
71 71 />
... ...
yudao-ui-admin-vue3/src/views/system/menu/index.vue
... ... @@ -8,8 +8,8 @@
8 8 <el-form-item label="状态" prop="status">
9 9 <el-select v-model="queryParams.status" placeholder="请选择菜单状态">
10 10 <el-option
11   - v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
12   - :key="dict.value"
  11 + v-for="(dict, index) in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
  12 + :key="index"
13 13 :label="dict.label"
14 14 :value="dict.value"
15 15 />
... ... @@ -124,7 +124,7 @@
124 124 <el-radio-group v-model="menuForm.type">
125 125 <el-radio-button
126 126 v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_MENU_TYPE)"
127   - :key="dict.value"
  127 + :key="dict.label"
128 128 :label="dict.value"
129 129 >
130 130 {{ dict.label }}
... ... @@ -178,7 +178,7 @@
178 178 <el-radio
179 179 border
180 180 v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
181   - :key="dict.value"
  181 + :key="dict.label"
182 182 :label="dict.value"
183 183 >
184 184 {{ dict.label }}
... ...
yudao-ui-admin-vue3/src/views/system/user/index.vue
... ... @@ -145,7 +145,7 @@
145 145 v-for="item in postOptions"
146 146 :key="item.id"
147 147 :label="item.name"
148   - :value="item.id"
  148 + :value="(item.id as unknown as number)"
149 149 />
150 150 </el-select>
151 151 </template>
... ...
yudao-ui-admin-vue3/src/views/system/user/user.data.ts
... ... @@ -14,8 +14,7 @@ export const rules = reactive({
14 14 status: [required],
15 15 mobile: [
16 16 {
17   - min: 11,
18   - max: 11,
  17 + len: 11,
19 18 trigger: 'blur',
20 19 message: '请输入正确的手机号码'
21 20 }
... ...