tangning 4 bulan lalu
induk
melakukan
1b4176c289

+ 2 - 0
src/locales/lang/en/routes/empower.ts

@@ -17,4 +17,6 @@ export default {
   deltTips: 'Are you sure you want to delete this license?',
   addtTips: 'Are you sure you want to add this license?',
   editTips: 'Are you sure you want to edit this license?',
+  remarks: 'remark',
+  placeholder: 'Please enter the remarks information',
 };

+ 2 - 0
src/locales/lang/zh-CN/routes/empower.ts

@@ -17,4 +17,6 @@ export default {
   deltTips: '确定要删除授权吗?',
   addtTips: '确定要新增授权吗?',
   editTips: '确定要编辑授权吗?',
+  remarks: '备注',
+  placeholder: '请输入备注信息',
 };

+ 4 - 3
src/views/empower/data.ts

@@ -1,14 +1,15 @@
 import { FormSchema } from '/@/components/Form/index';
 import { incrementUseTypeList } from '/@/api/account';
-
+import { useI18n } from '/@/hooks/web/useI18n';
+const { t } = useI18n();
 // 基础设置 form
 export const remarkschemas: FormSchema[] = [
   {
     field: 'remark',
     component: 'InputTextArea',
-    label: '备注',
+    label: t('routes.empower.remarks'),
     componentProps: {
-      placeholder: '请输入备注信息',
+      placeholder: t('routes.empower.placeholder'),
       rows: 4,
     },
     colProps: { span: 20 },