Commit c90ef8bf authored by chenshouchao's avatar chenshouchao

feat: demo组件在dev也可以看到

parent 7a5c0e45
...@@ -28,7 +28,7 @@ const useMyRouter = () => { ...@@ -28,7 +28,7 @@ const useMyRouter = () => {
); );
permissionStore.restAddRoutes(); permissionStore.restAddRoutes();
if (window.location.host === "localhost:8088") { if (window.location.host === "localhost:8088" || window.location.host === '47.57.4.97') {
menuInfo.res.data.forEach((item: any) => { menuInfo.res.data.forEach((item: any) => {
if (item.id === 'cadd') { if (item.id === 'cadd') {
item.routes.push({ item.routes.push({
......
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