diff --git a/.umirc.ts b/.umirc.ts index 0ff304d..6b8a3d7 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -22,8 +22,8 @@ export default defineConfig({ component: '@/pages/Basic/Header', routes: [ { - path: '/basic/login', - component: '@/pages/Basic/List/Login', + path: '/basic/index', + component: '@/pages/Basic/List/Index', }, { path: '/basic/device', diff --git a/src/pages/Basic/List/Certificate/Step4/index.tsx b/src/pages/Basic/List/Certificate/Step4/index.tsx index b39b7e4..e992f32 100644 --- a/src/pages/Basic/List/Certificate/Step4/index.tsx +++ b/src/pages/Basic/List/Certificate/Step4/index.tsx @@ -20,7 +20,7 @@ const Page: FC = ({ basic, dispatch }) => { }); if (res.result === 'success') { message.success('开通证书系统成功'); - history.replace('/basic/login'); + history.replace('/basic/index'); } }; diff --git a/src/pages/Basic/List/Device/index.tsx b/src/pages/Basic/List/Device/index.tsx index a0350b9..db31c3f 100644 --- a/src/pages/Basic/List/Device/index.tsx +++ b/src/pages/Basic/List/Device/index.tsx @@ -119,13 +119,15 @@ const Page: FC = ({ basic, dispatch }) => { sendData.file2 = sendData.file2.name; sendData.file3 = sendData.file3.name; sendData.file4 = sendData.file4.name; + delete sendData.cert; + delete sendData.resource; const res = await Fetch('/openi/resource/openResourceNow', { method: 'post', data: sendData, }); if (res.result === 'success') { message.success('成功开通设施管理设备'); - history.replace('/basic/login'); + history.replace('/basic/index'); } }; diff --git a/src/pages/Basic/List/Login/index.less b/src/pages/Basic/List/Index/index.less similarity index 100% rename from src/pages/Basic/List/Login/index.less rename to src/pages/Basic/List/Index/index.less diff --git a/src/pages/Basic/List/Login/index.tsx b/src/pages/Basic/List/Index/index.tsx similarity index 100% rename from src/pages/Basic/List/Login/index.tsx rename to src/pages/Basic/List/Index/index.tsx diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 52af019..f92f7d0 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -10,7 +10,7 @@ const IndexPage = ({ ...props }) => { useEffect(() => { const basic = ['/', '/basic/device', '/basic/certificate']; if (basic.includes(props.location.pathname)) { - history.replace('/basic/login'); + history.replace('/basic/index'); } }, []);