From 2fa4f68b1eb94758817d4594b8bce5a5705363bd Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 1 Jul 2025 18:13:32 +0800 Subject: [PATCH] fix: Update backup account documentation links (#9364) --- .../setting/backup-account/operate/index.vue | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/frontend/src/views/setting/backup-account/operate/index.vue b/frontend/src/views/setting/backup-account/operate/index.vue index 45b90a805..6c8bcef3f 100644 --- a/frontend/src/views/setting/backup-account/operate/index.vue +++ b/frontend/src/views/setting/backup-account/operate/index.vue @@ -78,7 +78,7 @@ {{ $t('firewall.quickJump') }} @@ -284,7 +284,7 @@ {{ $t('firewall.quickJump') }} @@ -311,7 +311,7 @@ {{ $t('firewall.quickJump') }} @@ -353,7 +353,7 @@ {{ $t('firewall.quickJump') }} @@ -474,15 +474,25 @@ const acceptParams = (params: DialogProps): void => { } drawerVisible.value = true; }; -const toDoc = (isConf: boolean) => { - let item = isConf ? '#32-onedrive' : '#33-onedrive'; - if (globalStore.isIntl) { - item = isConf ? '#using-your-own-client-info-for-onedrive' : '#auth-code-of-onedrive'; +const toDoc = (type: string) => { + let uri = ''; + switch (type) { + case 'onedrive': + uri = '#32-onedrive'; + break; + case 'onedrive-bind': + uri = '#33-onedrive'; + break; + case 'ali-pan': + uri = '#34'; + break; + case 'google-drive': + uri = '#35'; + break; + case 'webdav': + uri = '#36-webdav-alist'; + break; } - window.open(globalStore.docsUrl + '/user_manual/settings/' + item, '_blank', 'noopener,noreferrer'); -}; -const toWebDAVDoc = () => { - const uri = globalStore.isIntl ? '#webdav-with-alist' : '#34-webdav-alist'; window.open(globalStore.docsUrl + '/user_manual/settings/' + uri, '_blank', 'noopener,noreferrer'); }; const jumpForCode = async (formEl: FormInstance | undefined) => {