From aee2fd9bcf046675f7006e810aad37f2cb47a57c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 17 May 2022 14:42:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A8=A1=E7=89=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BC=98=E5=8C=96,=E7=B3=BB=E7=BB=9F=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=9A=84=E7=AE=A1=E7=90=86=E9=9C=80=E8=A6=81=E6=8E=88?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/db/migration/V35__1.11.sql | 3 +++ frontend/src/views/panel/template/index.vue | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/backend/src/main/resources/db/migration/V35__1.11.sql b/backend/src/main/resources/db/migration/V35__1.11.sql index 8be983b423..85007121f6 100644 --- a/backend/src/main/resources/db/migration/V35__1.11.sql +++ b/backend/src/main/resources/db/migration/V35__1.11.sql @@ -1,2 +1,5 @@ ALTER TABLE `panel_group` ADD COLUMN `status` varchar(255) NULL DEFAULT 'publish' COMMENT '1.publish--发布 2.unpublished--未发布' AFTER `mobile_layout`; + +UPDATE `sys_menu` SET `sub_count` = 1 WHERE `menu_id` = 40; +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (401, 40, 0, 2, '查看系统模板', NULL, NULL, 999, NULL, NULL, 0, 0, 0, 'sys-template:read', NULL, NULL, 1614930862373, 1614930862373); diff --git a/frontend/src/views/panel/template/index.vue b/frontend/src/views/panel/template/index.vue index f5fc445c8c..d40258a2d5 100644 --- a/frontend/src/views/panel/template/index.vue +++ b/frontend/src/views/panel/template/index.vue @@ -2,10 +2,11 @@ - - {{ $t('panel.sys_template') }} + + {{ $t('panel.user_template') }} + - - {{ $t('panel.user_template') }} - + + {{ $t('panel.sys_template') }}