Browse Source

update 优化 用户头像 img 变量无确定类型问题

疯狂的狮子Li 1 year ago
parent
commit
c020c1affc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/system/user/profile/userAvatar.vue

+ 1 - 1
src/views/system/user/profile/userAvatar.vue

@@ -62,7 +62,7 @@ import { uploadAvatar } from "@/api/system/user";
 import useUserStore from "@/store/modules/user";
 
 interface Options {
-  img: string | ArrayBuffer | null; // 裁剪图片的地址
+  img: string | any; // 裁剪图片的地址
   autoCrop: boolean; // 是否默认生成截图框
   autoCropWidth: number; // 默认生成截图框宽度
   autoCropHeight: number; // 默认生成截图框高度