From b3ecddb20fdd8e3dfa5cd26a28a8817d5dc72308 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 7 Jun 2023 18:23:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=A1=E5=88=92=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=A2=9E=E5=8A=A0=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=B4=A6=E5=8F=B7=E8=B7=B3=E8=BD=AC=20(#1282?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 1 + frontend/src/lang/modules/zh.ts | 3 ++- frontend/src/views/cronjob/operate/index.vue | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 0ea46bbda..711548ef5 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -663,6 +663,7 @@ const message = { saveLocal: 'Retain local backups (the same as the number of cloud storage copies)', url: 'URL Address', target: 'Target', + targetHelper: 'Third-party backup accounts are maintained in panel settings.', retainCopies: 'Retain copies', retainCopiesHelper: 'Number of copies of execution records, log files, and backup files', cronSpecRule: 'Please enter a correct lifecycle', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index c9bf6125a..4ab25963c 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -612,7 +612,7 @@ const message = { daemonJsonPathHelper: '请保证配置路径与 docker.service 中指定的配置路径保持一致。', mirrors: '镜像加速', mirrorsHelper: '优先使用加速 URL 执行操作,设置为空则取消镜像加速。', - mirrorsHelper2: '具体操作配置请参照官方文档,', + mirrorsHelper2: '具体操作配置请参照官方文档', registries: '私有仓库', cutLog: '日志切割', cutLogHelper1: '当前配置只会影响新创建的容器;', @@ -658,6 +658,7 @@ const message = { saveLocal: '同时保留本地备份(和云存储保留份数一致)', url: 'URL 地址', target: '备份到', + targetHelper: '第三方备份账号在面板设置中维护', retainCopies: '保留份数', retainCopiesHelper: '执行记录、日志文件、备份文件保留份数', cronSpecRule: '请输入正确的执行周期', diff --git a/frontend/src/views/cronjob/operate/index.vue b/frontend/src/views/cronjob/operate/index.vue index c6887f395..e1d095fa0 100644 --- a/frontend/src/views/cronjob/operate/index.vue +++ b/frontend/src/views/cronjob/operate/index.vue @@ -129,6 +129,17 @@ :label="item.label" /> + + {{ $t('cronjob.targetHelper') }} + + {{ $t('firewall.quickJump') }} + + @@ -193,6 +204,8 @@ import { CheckAppInstalled } from '@/api/modules/app'; import { GetWebsiteOptions } from '@/api/modules/website'; import DrawerHeader from '@/components/drawer-header/index.vue'; import { MsgError, MsgSuccess } from '@/utils/message'; +import { useRouter } from 'vue-router'; +const router = useRouter(); interface DialogProps { title: string; @@ -220,6 +233,10 @@ const acceptParams = (params: DialogProps): void => { }; const emit = defineEmits<{ (e: 'search'): void }>(); +const goRouter = async (path: string) => { + router.push({ path: path }); +}; + const handleClose = () => { drawerVisiable.value = false; };