diff --git a/yudao-ui-admin-vue3/src/components/Qrcode/src/Qrcode.vue b/yudao-ui-admin-vue3/src/components/Qrcode/src/Qrcode.vue index 61a393f7f..0ef59ba73 100644 --- a/yudao-ui-admin-vue3/src/components/Qrcode/src/Qrcode.vue +++ b/yudao-ui-admin-vue3/src/components/Qrcode/src/Qrcode.vue @@ -64,7 +64,7 @@ const initQrcode = async () => { options.errorCorrectionLevel || getErrorCorrectionLevel(unref(renderText)) const _width: number = await getOriginWidth(unref(renderText), options) 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(renderText), options diff --git a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue index de3d450ed..e50905e8b 100644 --- a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue @@ -64,8 +64,8 @@ diff --git a/yudao-ui-admin-vue3/src/views/system/menu/index.vue b/yudao-ui-admin-vue3/src/views/system/menu/index.vue index 692e48148..ab9040341 100644 --- a/yudao-ui-admin-vue3/src/views/system/menu/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/menu/index.vue @@ -8,8 +8,8 @@ @@ -124,7 +124,7 @@ {{ dict.label }} @@ -178,7 +178,7 @@ {{ dict.label }} diff --git a/yudao-ui-admin-vue3/src/views/system/user/index.vue b/yudao-ui-admin-vue3/src/views/system/user/index.vue index 6d61a5c42..f694486f0 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue @@ -145,7 +145,7 @@ v-for="item in postOptions" :key="item.id" :label="item.name" - :value="item.id" + :value="(item.id as unknown as number)" /> diff --git a/yudao-ui-admin-vue3/src/views/system/user/user.data.ts b/yudao-ui-admin-vue3/src/views/system/user/user.data.ts index 4fbf3583c..5f43fa51f 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/user.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/user/user.data.ts @@ -14,8 +14,7 @@ export const rules = reactive({ status: [required], mobile: [ { - min: 11, - max: 11, + len: 11, trigger: 'blur', message: '请输入正确的手机号码' }