From 05e103d98b97c77b160523b91dd879fedec5a382 Mon Sep 17 00:00:00 2001 From: wangqi <3188864257@qq.com> Date: Mon, 6 Jan 2025 17:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=8E=AF=E5=A2=83=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- .env.production | 4 ++-- auto-imports.d.ts | 1 + src/pages/fileDoc/index.vue | 8 +++++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index cd7cc83..d335511 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ -VITE_BASE_URL = 'http://192.168.1.17:48081' -VITE_SOCKET_SERVER = 'http://192.168.1.17:48081' +VITE_BASE_URL = 'http://192.168.1.3:48081' +VITE_SOCKET_SERVER = 'http://192.168.1.3:48081' diff --git a/.env.production b/.env.production index 4a79a99..c4c416d 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,2 @@ -VITE_BASE_URL = 'http://192.168.1.17:10393' -VITE_SOCKET_SERVER = 'http://192.168.1.17:10393' \ No newline at end of file +VITE_BASE_URL = 'http://192.168.1.3:48081' +VITE_SOCKET_SERVER = 'http://192.168.1.3:48081' \ No newline at end of file diff --git a/auto-imports.d.ts b/auto-imports.d.ts index ee78553..fb0c411 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -8,6 +8,7 @@ declare global { const EffectScope: typeof import('vue')['EffectScope'] const ElLoading: typeof import('element-plus/es')['ElLoading'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] + const ElNotification: typeof import('element-plus/es')['ElNotification'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/src/pages/fileDoc/index.vue b/src/pages/fileDoc/index.vue index 7257197..2c3b49c 100644 --- a/src/pages/fileDoc/index.vue +++ b/src/pages/fileDoc/index.vue @@ -141,7 +141,13 @@ async function loadData(id: number = 0) { parentId: id, }) loading.value = false - if (isResError(res)) return + if (isResError(res)) { + // 错误 删除最后一个面包屑 + if (breadcrumbList.value.length > 1) { + breadcrumbList.value.pop() + } + return + } dataList.value = res.data }