fix(share)
This commit is contained in:
parent
604cb87c53
commit
4e5deeb177
|
@ -95,7 +95,6 @@
|
||||||
"build": "node scripts/build.js",
|
"build": "node scripts/build.js",
|
||||||
"test": "node scripts/test.js"
|
"test": "node scripts/test.js"
|
||||||
},
|
},
|
||||||
"proxy": "http://127.0.0.1:12216/v1",
|
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"react-app",
|
"react-app",
|
||||||
|
|
|
@ -59,6 +59,9 @@ const LayOut = (props: Store) => {
|
||||||
const [stateOpenKeys, setStateOpenKeys] = useState(['2', '23']);
|
const [stateOpenKeys, setStateOpenKeys] = useState(['2', '23']);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const uData = window.localStorage.getItem("user") ?? '';
|
const uData = window.localStorage.getItem("user") ?? '';
|
||||||
|
if (uData === "" || uData === null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
setUname(JSON.parse(uData).user.user_name)
|
setUname(JSON.parse(uData).user.user_name)
|
||||||
usrStore.getMenu().then((res) => {
|
usrStore.getMenu().then((res) => {
|
||||||
const men: any = [];
|
const men: any = [];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class Config {
|
class Config {
|
||||||
static baseUrl = "/";
|
static baseUrl = "https://hj.quwanya.cn/v1"
|
||||||
}
|
}
|
||||||
export default Config;
|
export default Config;
|
||||||
|
|
Loading…
Reference in New Issue