|
@@ -1,7 +1,7 @@
|
|
/*
|
|
/*
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2022-01-06 15:25:39
|
|
* @Date: 2022-01-06 15:25:39
|
|
- * @LastEditTime: 2023-04-17 15:32:38
|
|
|
|
|
|
+ * @LastEditTime: 2023-04-17 15:54:58
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/platform/_layout.tsx
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/platform/_layout.tsx
|
|
@@ -28,6 +28,8 @@ export default function Layout({ children, location, route, history, match, ...r
|
|
const [isShowPageMenu, set_isShowPageMenu] = useState(true);
|
|
const [isShowPageMenu, set_isShowPageMenu] = useState(true);
|
|
const [isEmpty, set_isEmpty] = useState(false);
|
|
const [isEmpty, set_isEmpty] = useState(false);
|
|
|
|
|
|
|
|
+ const [pageUrl,set_pageUrl] = useState<string|undefined>(undefined);
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
const { pathname } = location;
|
|
const { pathname } = location;
|
|
@@ -69,8 +71,7 @@ export default function Layout({ children, location, route, history, match, ...r
|
|
if (location.pathname == '/platform/costMana') {
|
|
if (location.pathname == '/platform/costMana') {
|
|
|
|
|
|
//临时解决未嵌入成本核算,而实现访问的效果
|
|
//临时解决未嵌入成本核算,而实现访问的效果
|
|
- const [pageUrl,set_pageUrl] = useState<string|undefined>(undefined);
|
|
|
|
-
|
|
|
|
|
|
+
|
|
const getToken =async () => {
|
|
const getToken =async () => {
|
|
const resp = await getAllParams();
|
|
const resp = await getAllParams();
|
|
|
|
|
|
@@ -83,9 +84,7 @@ export default function Layout({ children, location, route, history, match, ...r
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- useEffect(()=>{
|
|
|
|
- getToken();
|
|
|
|
- },[])
|
|
|
|
|
|
+ getToken();
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|