diff --git a/backend/src/main/resources/db/migration/V2__dataease_ddl.sql b/backend/src/main/resources/db/migration/V2__dataease_ddl.sql index b9f4db1691..8c584295f1 100644 --- a/backend/src/main/resources/db/migration/V2__dataease_ddl.sql +++ b/backend/src/main/resources/db/migration/V2__dataease_ddl.sql @@ -120,6 +120,7 @@ CREATE TABLE `sys_user` ( `pwd_reset_time` bigint(13) DEFAULT NULL COMMENT '修改密码的时间', `create_time` bigint(13) DEFAULT NULL COMMENT '创建日期', `update_time` bigint(13) DEFAULT NULL COMMENT '更新时间', + `language` varchar(20) DEFAULT NULL COMMENT '语言', PRIMARY KEY (`user_id`) USING BTREE, UNIQUE KEY `UK_kpubos9gc2cvtkb0thktkbkes` (`email`) USING BTREE, UNIQUE KEY `username` (`username`) USING BTREE, diff --git a/backend/src/main/resources/db/migration/V3__init_data.sql b/backend/src/main/resources/db/migration/V3__init_data.sql index 96494e155e..8a6b077731 100644 --- a/backend/src/main/resources/db/migration/V3__init_data.sql +++ b/backend/src/main/resources/db/migration/V3__init_data.sql @@ -46,6 +46,7 @@ INSERT INTO `sys_menu` VALUES (40, 1, 0, 1, '模板管理', '模板管理', 'pan INSERT INTO `sys_menu` VALUES (41, 1, 0, 1, '权限管理', '权限管理', 'system/permission/index', 14, 'password', 'system/permission/index', b'0', b'0', b'0', 'sysparam:read', NULL, NULL, NULL, 1620447312657); INSERT INTO `sys_menu` VALUES (50, 0, 0, 1, '个人信息', '个人信息', 'system/user/privateForm', 999, NULL, '/person-info', b'0', b'0', b'1', NULL, NULL, NULL, NULL, NULL); INSERT INTO `sys_menu` VALUES (51, 0, 0, 1, '重置密码', '重置密码', 'system/user/personPwd', 999, NULL, '/person-pwd', b'0', b'0', b'1', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` VALUES (52, 1, 0, 1, '关于', '关于', 'system/about/index', 16, 'system', 'about', b'0', b'0', b'0', NULL, NULL, NULL, NULL, 1620897406691); COMMIT; BEGIN; diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 06332c721c..6c0fe25b59 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -369,6 +369,8 @@ export default { sidebarLogo: 'Sidebar Logo' }, license: { + i18n_no_license_record: 'No License Record', + i18n_license_is_empty: 'License is empty.', title: 'Authorization Management', corporation: 'Customer Name', time: 'Authorization Time', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index fe55b5b9d6..6553f460b9 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -369,6 +369,8 @@ export default { sidebarLogo: '側邊欄 Logo' }, license: { + i18n_no_license_record: '沒有 License 紀錄', + i18n_license_is_empty: 'License 為空', title: '授權管理', corporation: '客户名稱', time: '授權時間', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index eba65a1690..552d459159 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -370,6 +370,8 @@ export default { sidebarLogo: '侧边栏 Logo' }, license: { + i18n_no_license_record: '没有 License 记录', + i18n_license_is_empty: 'License 为空', title: '授权管理', corporation: '客户名称', time: '授权时间', diff --git a/frontend/src/layout/components/Licbar.vue b/frontend/src/layout/components/Licbar.vue index 4cc2b023d1..e18e473f6a 100644 --- a/frontend/src/layout/components/Licbar.vue +++ b/frontend/src/layout/components/Licbar.vue @@ -1,6 +1,6 @@ @@ -24,7 +24,7 @@ export default { return this.$store.state.lic.validate }, licMsg() { - return this.$store.state.lic.licMsg + return this.$store.state.lic.licMsg ? ('license.' + this.$store.state.lic.licMsg) : null } },