From 44abe1a295f39ca474b3e63178058c11094fa982 Mon Sep 17 00:00:00 2001 From: luckyasme <807254037@qq.com> Date: Tue, 17 Jun 2025 11:55:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=9B=9E=E5=88=B0=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/.vitepress/src/shared/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/.vitepress/src/shared/login.ts b/app/.vitepress/src/shared/login.ts index a072daa1a..2c944142f 100644 --- a/app/.vitepress/src/shared/login.ts +++ b/app/.vitepress/src/shared/login.ts @@ -29,7 +29,7 @@ export const getCsrfToken = () => Cookies.get(LOGIN_KEYS.CSRF_TOKEN) || ''; // 退出登录 export function logout() { - location.href = `${LOGIN_URL}/logout?redirect_uri=${encodeURIComponent(window?.location?.origin)}`; + location.href = `${LOGIN_URL}/logout?redirect_uri=${encodeURIComponent(location.href)}`; } /** -- Gitee From 38c67ab961ad9980320998ea01ae662da85d8f3c Mon Sep 17 00:00:00 2001 From: luckyasme <807254037@qq.com> Date: Tue, 17 Jun 2025 14:16:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/.vitepress/src/components/doc/DocBugDialog.vue | 2 +- app/.vitepress/src/utils/common.ts | 2 +- scripts/pre-dev.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/.vitepress/src/components/doc/DocBugDialog.vue b/app/.vitepress/src/components/doc/DocBugDialog.vue index b2bb82608..44a6d4323 100644 --- a/app/.vitepress/src/components/doc/DocBugDialog.vue +++ b/app/.vitepress/src/components/doc/DocBugDialog.vue @@ -191,7 +191,7 @@ const submitBug = (results: FieldResultT[]) => { window.open( window.location.pathname.includes('/openstack/') ? `https://gitee.com/openeuler/openstack-docs/issues/new?issue%5Bassignee_id%5D=0&issue%5Bmilestone_id%5D=0&title=文档捉虫&description=${body}` - : `https://gitee.com/openeuler/docs/issues/new?issue%5Bassignee_id%5D=0&issue%5Bmilestone_id%5D=0&title=文档捉虫&description=${body}` + : `https://gitee.com/openeuler/docs-centralized/issues/new?issue%5Bassignee_id%5D=0&issue%5Bmilestone_id%5D=0&title=文档捉虫&description=${body}` ); } else { let pathname = window.location.pathname; diff --git a/app/.vitepress/src/utils/common.ts b/app/.vitepress/src/utils/common.ts index f81f9daa7..ca6842bfa 100644 --- a/app/.vitepress/src/utils/common.ts +++ b/app/.vitepress/src/utils/common.ts @@ -115,7 +115,7 @@ export const getGiteeUrl = () => { } else if (pathname.includes('/tools/ai/')) { return `https://gitee.com/openeuler/euler-copilot-framework/blob/master/docs_for_openEuler/${lang}/${others.slice(3).join('/')}`; } else { - return `https://gitee.com/openeuler/docs/blob/${branch}/docs/${lang}/${others.join('/')}`; + return `https://gitee.com/openeuler/docs-centralized/blob/${branch}/docs/${lang}/${others.join('/')}`; } }; diff --git a/scripts/pre-dev.js b/scripts/pre-dev.js index fe3d11f68..27157d6f7 100644 --- a/scripts/pre-dev.js +++ b/scripts/pre-dev.js @@ -10,7 +10,7 @@ const syncTemp = async (branch) => { await fs.rmSync(TEMP_DIR, { recursive: true, force: true }); } - await execSync(`git clone -b ${branch} --depth=1 https://gitee.com/openeuler/docs.git ${TEMP_DIR}`, { stdio: 'inherit' }); + await execSync(`git clone -b ${branch} --depth=1 https://gitee.com/openeuler/docs-centralized.git ${TEMP_DIR}`, { stdio: 'inherit' }); console.log(`成功克隆分支 ${branch} 到临时目录 ${TEMP_DIR}`); }; -- Gitee