|
@@ -9,11 +9,10 @@ import DashboardDesigner from '../components/dashboardDesigner/layout'
|
|
|
// 由于 antd 组件的默认文案是英文,所以需要修改为中文
|
|
// 由于 antd 组件的默认文案是英文,所以需要修改为中文
|
|
|
import zhCN from 'antd/lib/locale-provider/zh_CN'
|
|
import zhCN from 'antd/lib/locale-provider/zh_CN'
|
|
|
import Demo from '../demo';
|
|
import Demo from '../demo';
|
|
|
-import Login from '../components/common/login';
|
|
|
|
|
-
|
|
|
|
|
-window.localStorage.setItem("isAuthenticated", "false");
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
+if (!window.localStorage.getItem("isAuthenticated")) {
|
|
|
|
|
+ window.localStorage.setItem("isAuthenticated", "false");
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
|
|
const PrivateRoute = ({ component: Component, ...rest }) => (
|
|
const PrivateRoute = ({ component: Component, ...rest }) => (
|