Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7718ad8

Browse files
committed
change browserHistory to hashHistory
1 parent5973974 commit7718ad8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/containers/Root.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ import {
77
ConnectedRouter,
88
}from'react-router-redux'
99
import{StoreBuilder}from'redux-ts'
10-
importcreateHistoryfrom'history/createBrowserHistory'
10+
import{createHashHistory}from'history'
11+
import{PrivateRoute}from'../utils/route.helpers'
1112

1213
import{auth}from'../reducers/auth.reducer'
1314
import{layout}from'../reducers/layout.reducer'
1415
import{StoreState}from'../models/store.model'
16+
1517
importLayoutfrom'./Layout'
1618
importLoginfrom'./Login'
1719
import{Main}from'./Main'
18-
import{PrivateRoute}from'../utils/route.helpers'
1920
importDashboardfrom'./Dashboard'
2021

21-
consthistory=createHistory()
22+
consthistory=createHashHistory()
2223
constrouterMw=routerMiddleware(history)
2324
conststore=newStoreBuilder<StoreState>()
2425
.withDevTools()

‎src/utils/route.helpers.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ interface PrivateRouteProps extends RouteProps {
99
classPrivateRouteContainerextendsReact.Component<PrivateRouteProps>{
1010
render(){
1111
const{ isAuthenticated,component:Component, ...rest}=this.props
12-
console.log({ isAuthenticated})
1312

1413
return(
1514
<Route

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp