1
This commit is contained in:
29
_docs/sql/003_home_menu_seed.sql
Normal file
29
_docs/sql/003_home_menu_seed.sql
Normal 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
|
||||
-- icon:Material 图标名如 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 均已注册)。
|
||||
Reference in New Issue
Block a user