Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-admin
Commits
9d12ab4e
Commit
9d12ab4e
authored
Jun 21, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移除多余路由
parent
a39033d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
68 deletions
+36
-68
router.tsx
config/router.tsx
+34
-66
index.tsx
src/pages/pageCustomized/mobileEdit/index.tsx
+2
-2
No files found.
config/router.tsx
View file @
9d12ab4e
/*
* @Author: XieZhiXiong
* @Date: 2020-07-29 10:21:49
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-26 17:36:39
* @Description:
*/
/**
* @description 路由配置页, 更多配置可查看 https://umijs.org/zh-CN/docs/routing#routes
*/
const
router
=
[
{
path
:
'/login'
,
component
:
'@/pages/user/login'
,
},
{
path
:
'/mall/template/edit'
,
component
:
'@/pages/pageCustomized/mallEdit'
,
},
{
path
:
'/mall/template/preview'
,
component
:
'@/pages/pageCustomized/preview/mallPreview'
,
},
{
path
:
'/'
,
component
:
'@/layouts/index'
,
routes
:
[
{
path
:
'/'
,
redirect
:
'/home'
,
},
{
path
:
'/home'
,
name
:
'home'
,
component
:
'@/pages/home'
,
icon
:
'BarChartOutlined'
,
},
{
path
:
'/pageCustomized'
,
name
:
'pageCustomized'
,
icon
:
'SmileOutlined'
,
routes
:
[
{
path
:
'/pageCustomized/shopCenterTemplate'
,
name
:
'shopCenterTemplate'
,
component
:
'@/pages/pageCustomized/shopCenterTemplate'
,
},
{
path
:
'/pageCustomized/shopTemplate'
,
name
:
'shopTemplate'
,
component
:
'@/pages/pageCustomized/shopTemplate'
,
},
{
path
:
'/pageCustomized/template/detail'
,
name
:
'templateDetail'
,
component
:
'@/pages/pageCustomized/templateDetail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
,
},
],
},
],
},
];
export
default
router
;
/*
* @Author: XieZhiXiong
* @Date: 2020-07-29 10:21:49
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-26 17:36:39
* @Description:
*/
/**
* @description 路由配置页, 更多配置可查看 https://umijs.org/zh-CN/docs/routing#routes
*/
const
router
=
[
{
path
:
'/login'
,
component
:
'@/pages/user/login'
,
},
{
path
:
'/'
,
component
:
'@/layouts/index'
,
routes
:
[
{
path
:
'/'
,
redirect
:
'/home'
,
},
{
path
:
'/home'
,
name
:
'home'
,
component
:
'@/pages/home'
,
icon
:
'BarChartOutlined'
,
}
],
},
];
export
default
router
;
src/pages/pageCustomized/mobileEdit/index.tsx
View file @
9d12ab4e
...
...
@@ -88,10 +88,10 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
.
data
)
}
else
{
re
ject
(
false
)
re
solve
([]
)
}
}).
catch
((
eror
)
=>
{
re
ject
(
false
)
re
solve
([]
)
})
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment