From ad0b747b47929cc839ac9b79c6c60b1fae8489f7 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 30 Dec 2025 10:15:57 +0800 Subject: [PATCH 1/7] fix: Resolve white screen on data source page refresh --- frontend/src/router/watch.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/router/watch.ts b/frontend/src/router/watch.ts index ff5276f0..c1aaf8fe 100644 --- a/frontend/src/router/watch.ts +++ b/frontend/src/router/watch.ts @@ -34,9 +34,15 @@ export const watchRouter = (router: Router) => { next('/login') return } + let isFirstDynamicPath = false if (!userStore.getUid) { await userStore.info() generateDynamicRouters(router) + isFirstDynamicPath = to?.path === '/ds/index' + if (isFirstDynamicPath) { + next({ ...to, replace: true }) + return + } } if (to.path === '/' || accessCrossPermission(to)) { next('/chat') From 8058d61a53b7d4d83d447cd35b92c31f82f9d271 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 30 Dec 2025 10:31:01 +0800 Subject: [PATCH 2/7] fix(Data Source): A prompt will appear when the import is complete. --- .../system/excel-upload/UploaderRemark.vue | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/excel-upload/UploaderRemark.vue b/frontend/src/views/system/excel-upload/UploaderRemark.vue index ee01da76..ed827c91 100644 --- a/frontend/src/views/system/excel-upload/UploaderRemark.vue +++ b/frontend/src/views/system/excel-upload/UploaderRemark.vue @@ -134,7 +134,7 @@ const onError = (err: Error) => { infoMessage.value = msg hasError.value = true close() - showResult() + ElMessage.error(err.toString()) } const dialogShow = ref(false) @@ -144,7 +144,13 @@ const resultShow = ref(false) function showResult() { resultShow.value = true } - +function closeResult() { + resultShow.value = false +} +function backToUpload() { + closeResult() + open() +} function open() { dialogShow.value = true errorFileName.value = '' @@ -253,6 +259,27 @@ const submitUpload = () => { + + +
+ {{ infoMessage }} +
+ + +