From 0ed5ae71c559ddf9cbc530256142809d0f8a72ef Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Sat, 21 Oct 2023 22:46:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20OneDrive=20=E6=8E=88=E6=9D=83=E7=A0=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=BC=E5=BC=8F=E6=A0=A1=E9=AA=8C=20(#2614?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2610 --- frontend/src/lang/modules/en.ts | 1 + frontend/src/lang/modules/tw.ts | 1 + frontend/src/lang/modules/zh.ts | 1 + .../views/setting/backup-account/operate/index.vue | 14 ++++++++++++-- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index dfcfbd9e2..155386c50 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1065,6 +1065,7 @@ const message = { SFTP: 'SFTP', OneDrive: 'Microsoft OneDrive', backupDir: 'Backup dir', + codeWarning: 'The current authorization code format is incorrect, please confirm again!', isCN: 'Domestic version', code: 'Auth code', codeHelper: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 004ca44ed..71222294e 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1020,6 +1020,7 @@ const message = { MINIO: 'MINIO', SFTP: 'SFTP', OneDrive: '微軟 OneDrive', + codeWarning: '當前授權碼格式錯誤,請重新確認!', backupDir: '備份路徑', isCN: '國內版', code: '授權碼', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 4b8de1cd4..889ebbd4e 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1020,6 +1020,7 @@ const message = { MINIO: 'MINIO', SFTP: 'SFTP', OneDrive: '微软 OneDrive', + codeWarning: '当前授权码格式错误,请重新确认!', backupDir: '备份路径', isCN: '国内版', code: '授权码', diff --git a/frontend/src/views/setting/backup-account/operate/index.vue b/frontend/src/views/setting/backup-account/operate/index.vue index cb8b8a583..8a4525905 100644 --- a/frontend/src/views/setting/backup-account/operate/index.vue +++ b/frontend/src/views/setting/backup-account/operate/index.vue @@ -52,7 +52,7 @@ v-if="dialogData.rowData!.type === 'OneDrive'" :label="$t('setting.code')" prop="varsJson.code" - :rules="Rules.requiredInput" + :rules="rules.driveCode" >