Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 将分组的菜单设置为不缓存,解决进入不同分组时数据不更新的问题 #133

Merged
merged 3 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/sql/go_ldap_admin.sql
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ CREATE TABLE `menus` (
BEGIN;
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (1, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'UserManage', '人员管理', 'user', '/personnel', '/personnel/user', 'Layout', 5, 1, 2, 2, 2, 1, '', 0, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (2, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'User', '用户管理', 'people', 'user', '', '/personnel/user/index', 6, 1, 2, 2, 2, 1, '', 1, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (3, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'Group', '分组管理', 'peoples', 'group', '', '/personnel/group/index', 7, 1, 2, 2, 2, 1, '', 1, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (3, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'Group', '分组管理', 'peoples', 'group', '', '/personnel/group/index', 7, 1, 2, 1, 2, 1, '', 1, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (4, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'FieldRelation', '字段关系管理', 'el-icon-s-tools', 'fieldRelation', '', '/personnel/fieldRelation/index', 8, 1, 2, 2, 2, 1, '', 1, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (5, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'System', '系统管理', 'component', '/system', '/system/role', 'Layout', 9, 1, 2, 2, 2, 1, '', 0, '系统');
INSERT INTO `menus` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `title`, `icon`, `path`, `redirect`, `component`, `sort`, `status`, `hidden`, `no_cache`, `always_show`, `breadcrumb`, `active_menu`, `parent_id`, `creator`) VALUES (6, '2022-09-01 20:22:26.270', '2022-09-01 20:22:26.270', NULL, 'Role', '角色管理', 'eye-open', 'role', '', '/system/role/index', 10, 1, 2, 2, 2, 1, '', 5, '系统');
Expand Down
1 change: 1 addition & 0 deletions public/common/init_mysql_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func InitData() {
Component: "/personnel/group/index",
Sort: 7,
ParentId: uint1,
NoCache: 1,
Roles: roles[:1],
Creator: "系统",
},
Expand Down