fix(share)

This commit is contained in:
wang_yp 2025-07-09 14:55:36 +08:00
parent 604cb87c53
commit 4e5deeb177
3 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -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 = [];

View File

@ -1,4 +1,4 @@
class Config { class Config {
static baseUrl = "/"; static baseUrl = "https://hj.quwanya.cn/v1"
} }
export default Config; export default Config;