明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
letian_backend
Commits
17403af0
Commit
17403af0
authored
Sep 12, 2024
by
zengfanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c324d6bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
systemMenu.js
db/models/systemMenu.js
+8
-2
No files found.
db/models/systemMenu.js
View file @
17403af0
...
...
@@ -3,7 +3,7 @@ const Schema = mongoose.Schema;
const
moment
=
require
(
'moment'
);
/**
* 菜单表
* 菜单表
---按钮表 放一颗树里面
*/
const
menuSchema
=
new
Schema
({
...
...
@@ -37,10 +37,16 @@ const menuSchema = new Schema({
buttons
:
{
type
:
[
mongoose
.
Types
.
ObjectId
],
ref
:
'
Button
'
,
ref
:
'
Menu
'
,
default
:
[],
},
type
:
{
type
:
Number
,
comment
:
"类型: 1. 菜单, 2. 按钮"
,
default
:
1
},
enable
:
{
type
:
Boolean
,
default
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment