From 815276d6c5f5bcd9c4caf43589f632a6c8895169 Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Tue, 25 Nov 2025 17:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AE=8C=E6=88=90=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E9=A1=B5=E9=9D=A2=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E5=86=99=EF=BC=88=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E8=B7=AF=E7=94=B1=EF=BC=89=EF=BC=8C=E7=AD=89?= =?UTF-8?q?=E5=BE=85=E5=AF=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/SvgIcons/mutiple-language.svg | 12 + src/router/index.js | 7 + src/util/request.js | 2 +- src/utils/menuTreePermission.js | 4 +- src/utils/menuUtils.js | 4 +- src/views/activityManage/activity.vue | 2 +- src/views/home.vue | 1 + src/views/language/languageTranslate.vue | 542 +++++++++++++++++++++++++++++++ 8 files changed, 570 insertions(+), 4 deletions(-) create mode 100644 src/assets/SvgIcons/mutiple-language.svg create mode 100644 src/views/language/languageTranslate.vue diff --git a/src/assets/SvgIcons/mutiple-language.svg b/src/assets/SvgIcons/mutiple-language.svg new file mode 100644 index 0000000..5a6cc31 --- /dev/null +++ b/src/assets/SvgIcons/mutiple-language.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index d2e0632..ac0a06d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -419,6 +419,13 @@ const routes = [ component: () => import("../views/activityManage/activity.vue"), meta: {permissionId: 119} }, + // 多语言配置 + { + path: 'language', + name: "language", + component: () => import("../views/language/languageTranslate.vue"), + meta: {permissionId: 146} + }, // 没有权限 { path: '/noPermission', diff --git a/src/util/request.js b/src/util/request.js index 516e1c8..2b312ca 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -2,7 +2,7 @@ import axios from 'axios' // 创建axios实例 const service = axios.create({ baseURL: import.meta.env.VITE_API_BASE,//.env.development - timeout: 1000000, + timeout: 20000, // 20秒超时 headers: { 'Content-Type': 'application/json' }, diff --git a/src/utils/menuTreePermission.js b/src/utils/menuTreePermission.js index a502085..67b0da6 100644 --- a/src/utils/menuTreePermission.js +++ b/src/utils/menuTreePermission.js @@ -166,7 +166,9 @@ export const permissionMapping = { view_personal_information: 142, // 查看个人信息 change_password: 143, // 修改密码 logout_system: 144, // 退出登录 - message_push: 145 // 消息推送 + message_push: 145, // 消息推送 + + mutiple_language: 146, // 多语言配置 } // 递归查找菜单中是否存在目标id diff --git a/src/utils/menuUtils.js b/src/utils/menuUtils.js index b8ba460..2051139 100644 --- a/src/utils/menuUtils.js +++ b/src/utils/menuUtils.js @@ -48,6 +48,8 @@ export const getRoutePath = (menu) => { '金币管理': '/goldManage', '现金管理': '/moneyManage', '活动管理': '/activityManage', + '频道管理': '/channelManage', + '多语言配置': '/language', '金币审核': '/audit', '金豆审核': '/beanAudit', @@ -92,7 +94,7 @@ export const getRoutePath = (menu) => { '执行明细': '/moneyManage/executor', - '频道管理': '/channelManage', + '打赏管理': '/channelManage/reward', '铁粉管理': '/channelManage/fans', '小黄车管理': '/channelManage/cart', diff --git a/src/views/activityManage/activity.vue b/src/views/activityManage/activity.vue index bc74406..96724c4 100644 --- a/src/views/activityManage/activity.vue +++ b/src/views/activityManage/activity.vue @@ -33,7 +33,7 @@
- 新增活动 + 新增活动
diff --git a/src/views/home.vue b/src/views/home.vue index 3ca66e0..bc68c8f 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -27,6 +27,7 @@ const menuNameMap = { '活动管理': 'activity-management', '频道管理': 'channel-management', '权限管理': 'permission-management', + '多语言配置': 'mutiple-language', } const getIconPath = (menuName) => { diff --git a/src/views/language/languageTranslate.vue b/src/views/language/languageTranslate.vue new file mode 100644 index 0000000..399286d --- /dev/null +++ b/src/views/language/languageTranslate.vue @@ -0,0 +1,542 @@ + + + + + \ No newline at end of file