fix(system): 修复转码设置菜单误下发导致前端白屏
This commit is contained in:
1 parent
3df66c2f4c
commit
a36276051d
3 files changed
+28
-9
No files matched your search
+7
-1
@@ -80,9 +80,15 @@ ON CONFLICT (id) DO UPDATE SET parent_id = EXCLUDED.parent_id, title = EXCLUDED.
|
||||
type = EXCLUDED.type, always_show = EXCLUDED.always_show, affix = EXCLUDED.affix, sort = EXCLUDED.sort;
|
||||
|
||||
-- 转码设置菜单(挂在后台管理下,仅超级管理员可见)
|
||||
-- 权限码必须独立:早期误用 episode:upload,会让具备上传权限的创作者角色
|
||||
-- 也下发这条子菜单,而父级「后台管理」不在其可见范围内,菜单被提升为一级路由
|
||||
-- 后因路径缺少前导 "/" 导致前端路由注册报错、白屏。
|
||||
INSERT INTO sys_permission (id, code, name, group_name, type, sort)
|
||||
VALUES (50000105, 'system:transcode:settings', '转码设置', '后台管理', 'MENU', 7)
|
||||
ON CONFLICT (code) DO NOTHING;
|
||||
INSERT INTO sys_menu (id, parent_id, title, route_path, route_name, component, redirect, icon,
|
||||
permission_code, type, always_show, affix, sort) VALUES
|
||||
(35, 6, '转码设置', 'transcode-settings', 'transcode-settings', 'views/systemManagement/TranscodeSettingsView', '', '', 'episode:upload', 'MENU', 0, 0, 7)
|
||||
(35, 6, '转码设置', 'transcode-settings', 'transcode-settings', 'views/systemManagement/TranscodeSettingsView', '', '', 'system:transcode:settings', 'MENU', 0, 0, 7)
|
||||
ON CONFLICT (id) DO UPDATE SET parent_id = EXCLUDED.parent_id, title = EXCLUDED.title,
|
||||
route_path = EXCLUDED.route_path, route_name = EXCLUDED.route_name, component = EXCLUDED.component,
|
||||
redirect = EXCLUDED.redirect, icon = EXCLUDED.icon, permission_code = EXCLUDED.permission_code,
|
||||
|
||||
Reference in new issue
Block a user