This commit is contained in:
张成
2026-03-25 19:01:28 +08:00
parent 5b654824b4
commit 7d0a921805
27 changed files with 560 additions and 245 deletions

View File

@@ -0,0 +1,29 @@
-- =============================================================================
-- sys_menu 首页(字段与 api/model/sys_menu.js、现有库中菜单数据格式一致
--
-- 参考库中同类数据示例:
-- path首页为 home无前导 /);订阅子页为 /subscription/xxx
-- component与 admin/src/router/component-map.js 的 key 一致,可为 home/index 或 home/index.vue
-- iconMaterial 图标名如 md-home与系统页 system/sys_user.vue 等同风格)
-- =============================================================================
INSERT INTO sys_menu
(name, parent_id, icon, path, type, model_id, form_id, component, api_path, is_show_menu, is_show, sort)
VALUES
(
'首页',
0,
'md-home',
'home',
'页面',
0,
0,
'home/index.vue',
'',
1,
1,
0
);
-- 若已存在 name=首页 或 path=home 的记录,请先删除或改值后再执行,避免重复。
-- 若你希望 component 不带后缀,可将上面 'home/index.vue' 改为 'home/index'component-map 两种 key 均已注册)。