From 71d0c9683ccacbb2458e264e73366adb51624d49 Mon Sep 17 00:00:00 2001 From: pqcqaq <905739777@qq.com> Date: Sat, 18 Jan 2025 10:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=83=A8=E5=88=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/src/locales/common/zh_CN.json | 1 + template/src/locales/menu/zh_CN.json | 5 +++++ template/typings/index.d.ts | 2 +- template/web/src/app/components/footer/index.tsx | 5 ++++- template/web/src/app/components/header/index.ts | 5 ----- template/web/src/app/components/header/locales/zh_CN.json | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 template/src/locales/menu/zh_CN.json diff --git a/template/src/locales/common/zh_CN.json b/template/src/locales/common/zh_CN.json index 2562132..4d5a12d 100644 --- a/template/src/locales/common/zh_CN.json +++ b/template/src/locales/common/zh_CN.json @@ -1,4 +1,5 @@ { + "name": "Project_Name", "ptrActivate": "松开刷新", "ptrDeactivate": "下拉刷新", "ptrRelease": "正在刷新...", diff --git a/template/src/locales/menu/zh_CN.json b/template/src/locales/menu/zh_CN.json new file mode 100644 index 0000000..40f3646 --- /dev/null +++ b/template/src/locales/menu/zh_CN.json @@ -0,0 +1,5 @@ +{ + "System": "系统管理", + "userManage": "用户管理", + "relationManage": "关系管理" +} \ No newline at end of file diff --git a/template/typings/index.d.ts b/template/typings/index.d.ts index a471ae4..f083cf8 100644 --- a/template/typings/index.d.ts +++ b/template/typings/index.d.ts @@ -1,4 +1,4 @@ -/// +/// declare global { diff --git a/template/web/src/app/components/footer/index.tsx b/template/web/src/app/components/footer/index.tsx index 5dea63f..bb519a0 100644 --- a/template/web/src/app/components/footer/index.tsx +++ b/template/web/src/app/components/footer/index.tsx @@ -1,17 +1,20 @@ import React from 'react'; import { Layout } from 'antd'; import Style from './index.module.less'; +import useFeatures from '@project/hooks/useFeatures'; const { Footer } = Layout; export default function Render() { + const features = useFeatures(); + return ( diff --git a/template/web/src/app/components/header/index.ts b/template/web/src/app/components/header/index.ts index e6ea1a5..cce5d5d 100644 --- a/template/web/src/app/components/header/index.ts +++ b/template/web/src/app/components/header/index.ts @@ -8,9 +8,4 @@ export default OakComponent({ }; }, features: ['console'], - methods: { - logout() { - // this.features.xxxx.logout(); - } - }, }) \ No newline at end of file diff --git a/template/web/src/app/components/header/locales/zh_CN.json b/template/web/src/app/components/header/locales/zh_CN.json index edd2f93..ea480d8 100644 --- a/template/web/src/app/components/header/locales/zh_CN.json +++ b/template/web/src/app/components/header/locales/zh_CN.json @@ -1 +1 @@ -{"name":"Oak模板项目", "close": "关闭"} \ No newline at end of file +{"name":"Oak模板项目", "close": "关闭","modeUnset": "取消设置"} \ No newline at end of file