Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
c1eda7cc
Commit
c1eda7cc
authored
Aug 10, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e131b7ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/modules/root/Main.jsx
+8
-3
No files found.
src/modules/root/Main.jsx
View file @
c1eda7cc
...
...
@@ -10,7 +10,13 @@ function Main(props) {
console
.
log
(
"menuType"
,
menuType
);
useEffect
(()
=>
{
Bus
.
bind
(
'showRouteChangeModal'
,
()
=>
{
Bus
.
bind
(
'showRouteChangeModal'
,
showModal
)
return
()
=>
{
Bus
.
unbind
(
'showRouteChangeModal'
,
showModal
)
}
},
[])
function
showModal
(){
Modal
.
confirm
({
title
:
'确定要返回吗?'
,
content
:
'返回后,本次编辑的内容将不被保存'
,
...
...
@@ -22,8 +28,7 @@ function Main(props) {
},
});
})
},
[])
}
return
(
...
...
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