fix: eslint

This commit is contained in:
xingyu4j 2022-12-14 15:06:56 +08:00
parent 45a9a5a356
commit 753d8dda73
5 changed files with 9 additions and 10 deletions

View File

@ -64,7 +64,7 @@ const initQrcode = async () => {
options.errorCorrectionLevel || getErrorCorrectionLevel(unref(renderText)) options.errorCorrectionLevel || getErrorCorrectionLevel(unref(renderText))
const _width: number = await getOriginWidth(unref(renderText), options) const _width: number = await getOriginWidth(unref(renderText), options)
options.scale = props.width === 0 ? undefined : (props.width / _width) * 4 options.scale = props.width === 0 ? undefined : (props.width / _width) * 4
const canvasRef: HTMLCanvasElement = await toCanvas( const canvasRef: HTMLCanvasElement | any = await toCanvas(
unref(wrapRef) as HTMLCanvasElement, unref(wrapRef) as HTMLCanvasElement,
unref(renderText), unref(renderText),
options options

View File

@ -64,8 +64,8 @@
<el-form-item label="存储器" prop="storage"> <el-form-item label="存储器" prop="storage">
<el-select v-model="form.storage" placeholder="请选择存储器" :disabled="form.id !== 0"> <el-select v-model="form.storage" placeholder="请选择存储器" :disabled="form.id !== 0">
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.INFRA_FILE_STORAGE)" v-for="(dict, index) in getIntDictOptions(DICT_TYPE.INFRA_FILE_STORAGE)"
:key="dict.value" :key="index"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />

View File

@ -8,8 +8,8 @@
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择菜单状态"> <el-select v-model="queryParams.status" placeholder="请选择菜单状态">
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="(dict, index) in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="index"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
@ -124,7 +124,7 @@
<el-radio-group v-model="menuForm.type"> <el-radio-group v-model="menuForm.type">
<el-radio-button <el-radio-button
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_MENU_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_MENU_TYPE)"
:key="dict.value" :key="dict.label"
:label="dict.value" :label="dict.value"
> >
{{ dict.label }} {{ dict.label }}
@ -178,7 +178,7 @@
<el-radio <el-radio
border border
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.label"
:label="dict.value" :label="dict.value"
> >
{{ dict.label }} {{ dict.label }}

View File

@ -145,7 +145,7 @@
v-for="item in postOptions" v-for="item in postOptions"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="(item.id as unknown as number)"
/> />
</el-select> </el-select>
</template> </template>

View File

@ -14,8 +14,7 @@ export const rules = reactive({
status: [required], status: [required],
mobile: [ mobile: [
{ {
min: 11, len: 11,
max: 11,
trigger: 'blur', trigger: 'blur',
message: '请输入正确的手机号码' message: '请输入正确的手机号码'
} }