Просмотр исходного кода

fix: Profile handleAvatarChange 添加 async 关键字

ethanfly 3 дней назад
Родитель
Сommit
60849e944b
2 измененных файлов с 1 добавлено и 3 удалено
  1. 0 2
      client/src/components.d.ts
  2. 1 1
      client/src/views/Profile/index.vue

+ 0 - 2
client/src/components.d.ts

@@ -18,7 +18,6 @@ declare module 'vue' {
     ElCascader: typeof import('element-plus/es')['ElCascader']
     ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
     ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
-    ElCol: typeof import('element-plus/es')['ElCol']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     ElContainer: typeof import('element-plus/es')['ElContainer']
     ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
@@ -44,7 +43,6 @@ declare module 'vue' {
     ElProgress: typeof import('element-plus/es')['ElProgress']
     ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
     ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
-    ElRow: typeof import('element-plus/es')['ElRow']
     ElSelect: typeof import('element-plus/es')['ElSelect']
     ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
     ElSwitch: typeof import('element-plus/es')['ElSwitch']

+ 1 - 1
client/src/views/Profile/index.vue

@@ -144,7 +144,7 @@ function formatDate(date?: string | null) {
   return dayjs(date).format('YYYY-MM-DD HH:mm');
 }
 
-function handleAvatarChange(file: UploadFile) {
+async function handleAvatarChange(file: UploadFile) {
   if (!file.raw) return;
 
   // 校验文件类型