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
6691a8b3
Commit
6691a8b3
authored
Jul 27, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
36be8bd1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
src/index.tsx
+4
-0
src/routes/index.tsx
+0
-16
No files found.
src/index.tsx
View file @
6691a8b3
...
...
@@ -60,6 +60,10 @@ window.RCHistory = _.extend({}, history, {
}
});
window
.
onhashchange
=
()
=>
{
routeHook
.
cancel
()
}
function
mount
()
{
ReactDOM
.
render
(
<
RootRouter
/>,
...
...
src/routes/index.tsx
View file @
6691a8b3
...
...
@@ -18,22 +18,6 @@ import _ from 'underscore';
import
SwitchRoute
from
'@/modules/root/SwitchRoute'
;
import
ErrorCollege
from
'@/modules/root/ErrorCollege'
;
const
history
=
createHashHistory
();
window
.
RCHistory
=
_
.
extend
({},
history
,
{
push
:
(
obj
:
any
)
=>
{
history
.
push
(
obj
);
},
pushState
:
(
obj
:
any
)
=>
{
history
.
push
(
obj
);
},
pushStateWithStatus
:
(
obj
:
any
)
=>
{
history
.
push
(
obj
);
},
goBack
:
history
.
goBack
,
location
:
history
.
location
,
replace
:
(
obj
:
any
)
=>
{
history
.
replace
(
obj
);
},
});
export
const
RootRouter
=
()
=>
{
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