Commit 5cc26b08 authored by wuhao's avatar wuhao 🎯

asder

parent de583ac9
...@@ -26,7 +26,7 @@ function strToHump(str) { ...@@ -26,7 +26,7 @@ function strToHump(str) {
} }
export async function getInitialState() { export async function getInitialState() {
let token = localStorage.getItem('TOKENES'); let token = true;
const fetchUserInfo = async () => { const fetchUserInfo = async () => {
try { try {
const msg = await queryCurrentUser(); const msg = await queryCurrentUser();
...@@ -73,8 +73,7 @@ export async function getInitialState() { ...@@ -73,8 +73,7 @@ export async function getInitialState() {
// ProLayout 支持的api https://procomponents.ant.design/components/layout // ProLayout 支持的api https://procomponents.ant.design/components/layout
export const layout = ({ initialState, setInitialState }) => { export const layout = ({ initialState, setInitialState }) => {
let token = localStorage.getItem('TOKENES'); let token = true;
console.log(initialState, history);
return { return {
disableContentMargin: false, disableContentMargin: false,
waterMarkProps: { waterMarkProps: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment