From 1279f91a582257cc1f6a8605ec6da6b8ed145f2e Mon Sep 17 00:00:00 2001 From: zhongzm Date: Wed, 13 Aug 2025 16:16:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=8F=90=E4=BA=A4=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/alert/index.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/web-antd/src/views/alert/index.vue b/apps/web-antd/src/views/alert/index.vue index 2902d21..b5c9630 100644 --- a/apps/web-antd/src/views/alert/index.vue +++ b/apps/web-antd/src/views/alert/index.vue @@ -4,15 +4,14 @@ import { computed, onMounted, ref } from 'vue'; import { useAccess } from '@vben/access'; import { Page } from '@vben/common-ui'; -import { Button, Card, message, Space } from 'ant-design-vue'; +import { Button, Card, Space } from 'ant-design-vue'; import { useVbenForm } from '#/adapter/form'; import { getAlertPage, updateAlert } from '#/api/alert/alert'; import { getSimpleUserList } from '#/api/system/user'; +import { $t } from '#/locales'; const { hasAccessByCodes } = useAccess(); -import { getUserPage } from '#/api/system/user'; -import { $t } from '#/locales'; // 表单数据 const formData = ref({ @@ -27,10 +26,10 @@ const userOptions = ref([]); // 提醒天数选项 const daysOptions = [ - { label: '15'+$t('alert.day'), value: 15 }, - { label: '7'+$t('alert.day'), value: 7 }, - { label: '2'+$t('alert.day'), value: 2 }, - { label: '1'+$t('alert.day'), value: 1 }, + { label: `15${$t('alert.day')}`, value: 15 }, + { label: `7${$t('alert.day')}`, value: 7 }, + { label: `2${$t('alert.day')}`, value: 2 }, + { label: `1${$t('alert.day')}`, value: 1 }, ]; // 表单配置 @@ -187,7 +186,7 @@ onMounted(async () => { @click="handleSubmit" v-if="hasAccessByCodes(['license:alert:update'])" > - {{$t('alert.save')}} + {{ $t('alert.save') }}