Browse Source

文档环境修改

master
wangqi 2 months ago
parent
commit
05e103d98b
  1. 4
      .env.development
  2. 4
      .env.production
  3. 1
      auto-imports.d.ts
  4. 8
      src/pages/fileDoc/index.vue

4
.env.development

@ -1,2 +1,2 @@ @@ -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'

4
.env.production

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
VITE_BASE_URL = 'http://192.168.1.17:10393'
VITE_SOCKET_SERVER = 'http://192.168.1.17:10393'
VITE_BASE_URL = 'http://192.168.1.3:48081'
VITE_SOCKET_SERVER = 'http://192.168.1.3:48081'

1
auto-imports.d.ts vendored

@ -8,6 +8,7 @@ declare global { @@ -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']

8
src/pages/fileDoc/index.vue

@ -141,7 +141,13 @@ async function loadData(id: number = 0) { @@ -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
}

Loading…
Cancel
Save