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 }