From a72490943505d330d8868e3847f7e60521e11e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Mon, 17 Feb 2025 11:39:33 +0800 Subject: [PATCH] =?UTF-8?q?origin=E5=90=8E=E6=B7=BB=E5=8A=A0/witchaind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- src/views/knowledgeFile/index.vue | 6 +++--- src/views/knowledgeFileSection/index.vue | 4 ++-- src/views/knowledgeLibrary/index.vue | 6 +++--- src/views/login/index.vue | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 526c91a..d8f24bb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -57,7 +57,7 @@ export function setupRouter(app: App) { * 重置路由 */ export function resetRouter() { - window.open(`${window.origin}/#/login`, "_self"); + window.open(`${window.origin}/witchaind/#/login`, "_self"); } export default router; diff --git a/src/views/knowledgeFile/index.vue b/src/views/knowledgeFile/index.vue index 53e3536..098b0c5 100644 --- a/src/views/knowledgeFile/index.vue +++ b/src/views/knowledgeFile/index.vue @@ -1001,7 +1001,7 @@ const handleSearchPayload = () => { }; const handleJumpHome = () => { - window.open(`${window.origin}/#/knowledge/library`, "_self"); + window.open(`${window.origin}/witchaind/#/knowledge/library`, "_self"); }; const handleHeaderClick = (e: any) => {}; @@ -1127,7 +1127,7 @@ const hanldeSearhNameFilter = (filterName: string) => { const handleJumpFileSection = (row: any) => { window.open( - `${window.origin}/#/knowledge/fileSection?kb_id=${route.query.kb_id}&file_id=${row.id}`, + `${window.origin}/witchaind/#/knowledge/fileSection?kb_id=${route.query.kb_id}&file_id=${row.id}`, "_self" ); }; @@ -1485,7 +1485,7 @@ const handleUploadMyFile = (options: any) => { const handleDownloadFile = (downloadData: any) => { downloadData.forEach((item: { id: any }) => { - window.open(`${window.origin}/api/doc/download?id=${item.id}`); + window.open(`${window.origin}/witchaind/api/doc/download?id=${item.id}`); }); }; diff --git a/src/views/knowledgeFileSection/index.vue b/src/views/knowledgeFileSection/index.vue index e566c5e..99ce277 100644 --- a/src/views/knowledgeFileSection/index.vue +++ b/src/views/knowledgeFileSection/index.vue @@ -564,11 +564,11 @@ const handleInputSearch = debounce((e) => { }, 200); const handleJumpHome = () => { - window.open(`${window.origin}/#/knowledge/library`, "_self"); + window.open(`${window.origin}/witchaind/#/knowledge/library`, "_self"); }; const handleJumpFile = () => { const kb_Id = route.query.kb_id as string; - window.open(`${window.origin}/#/knowledge/file?kb_id=${kb_Id}`, "_self"); + window.open(`${window.origin}/witchaind/#/knowledge/file?kb_id=${kb_Id}`, "_self"); }; diff --git a/src/views/knowledgeLibrary/index.vue b/src/views/knowledgeLibrary/index.vue index b2fa780..9ff95bd 100644 --- a/src/views/knowledgeLibrary/index.vue +++ b/src/views/knowledgeLibrary/index.vue @@ -1074,13 +1074,13 @@ const handleCancelVisible = () => { }; const handleJumpAssets = (kbItem: any) => { - window.open(`${window.origin}/#/knowledge/file?kb_id=${kbItem.id}`, "_self"); + window.open(`${window.origin}/witchaind/#/knowledge/file?kb_id=${kbItem.id}`, "_self"); }; const handleAddFile = () => { const assetLibraryObj = fileTableList.data[0]; window.open( - `${window.origin}/#/knowledge/file?kb_id=${assetLibraryObj.id}`, + `${window.origin}/witchaind/#/knowledge/file?kb_id=${assetLibraryObj.id}`, "_self" ); }; @@ -1119,7 +1119,7 @@ const handleDeleteKl = (row: any) => { }; const handleOpenDownload = (fileId: any) => { - window.open(`${window.origin}/api/kb/download?task_id=${fileId}`); + window.open(`${window.origin}/witchaind/api/kb/download?task_id=${fileId}`); }; const handleInputSearch = debounce((e) => { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 4844755..93971da 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -416,7 +416,7 @@ const handleLoginSubmit = () => { duration: 3000, }); localStorage.setItem("userInfo", JSON.stringify(res)); - window.open(`${window.origin}/#/knowledge/library`, "_self"); + window.open(`${window.origin}/witchaind/#/knowledge/library`, "_self"); }) .finally(() => { loading.value = false; -- Gitee