refactor: 界面优化和使用sse替换websocket

This commit is contained in:
Ray.Hao
2026-04-26 14:11:05 +08:00
parent 0288b5a08d
commit c9fbc441bd
31 changed files with 546 additions and 916 deletions

View File

@@ -96,8 +96,8 @@
type="primary"
size="large"
block
:disabled="!canComplete || loading"
:loading="loading"
:disabled="!canComplete || isLoading"
:loading="isLoading"
@click="handleComplete"
>
完成
@@ -145,7 +145,7 @@ const rules = {
],
};
const loading = ref(false);
const isLoading = ref(false);
const cropperVisible = ref(false);
const originalImageSrc = ref("");
const profileFormRef = ref();
@@ -231,7 +231,7 @@ const handleComplete = async () => {
return;
}
loading.value = true;
isLoading.value = true;
await UserAPI.updateProfile({
nickname: profileForm.nickname,
@@ -252,7 +252,7 @@ const handleComplete = async () => {
} catch (error: any) {
toast.error(error?.message || "完善信息失败");
} finally {
loading.value = false;
isLoading.value = false;
}
};