diff --git a/core/core-backend/src/main/resources/db/desktop/V2.0__core_ddl.sql b/core/core-backend/src/main/resources/db/desktop/V2.0__core_ddl.sql index a64756e4e8..8d1fa065fd 100644 --- a/core/core-backend/src/main/resources/db/desktop/V2.0__core_ddl.sql +++ b/core/core-backend/src/main/resources/db/desktop/V2.0__core_ddl.sql @@ -4213,7 +4213,7 @@ DROP TABLE IF EXISTS `core_opt_recent`; CREATE TABLE `core_opt_recent` ( `id` bigint NOT NULL COMMENT 'ID', - `resource_id` bigint NOT NULL COMMENT '资源ID', + `resource_id` bigint DEFAULT NULL COMMENT '资源ID', `uid` bigint NOT NULL COMMENT '用户ID', `resource_type` int NOT NULL COMMENT '资源类型', `opt_type` int DEFAULT NULL COMMENT '1 新建 2 修改', diff --git a/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql b/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql index 43b2e5bdf7..1486e594e8 100644 --- a/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql +++ b/core/core-backend/src/main/resources/db/desktop/V2.1__ddl.sql @@ -70,6 +70,10 @@ VALUES (30, 0, 1, 'toolbox', null, 7, 'icon_template', '/toolbox', 1, 1, 0); INSERT INTO `core_menu` VALUES (31, 30, 2, 'template-setting', 'toolbox/template-setting', 1, 'icon_template', '/template-setting', 0, 1, 1); + +ALTER TABLE `core_opt_recent` + MODIFY COLUMN `resource_id` bigint NULL COMMENT '资源ID'; + ALTER TABLE core_opt_recent ADD `resource_name` varchar(255) NULL COMMENT '资源名称'; diff --git a/core/core-frontend/src/views/workbranch/ShortcutTable.vue b/core/core-frontend/src/views/workbranch/ShortcutTable.vue index 3061fb2206..ba01ba95b6 100644 --- a/core/core-frontend/src/views/workbranch/ShortcutTable.vue +++ b/core/core-frontend/src/views/workbranch/ShortcutTable.vue @@ -54,7 +54,7 @@ const state = reactive({ }) const busiDataMap = computed(() => interactiveStore.getData) const shareDisable = computed(() => { - return shareStore.getShareDisable + return shareStore.getShareDisable || desktop }) const iconMap = { panel: icon_dashboard_outlined,