Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d31ade7a
authored
Jun 07, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 完善 SPU 相关路由 review
parent
20f3f726
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/router/modules/remaining.ts
+3
-3
src/views/mall/product/spu/index.vue
+1
-1
No files found.
src/router/modules/remaining.ts
View file @
d31ade7a
...
@@ -355,7 +355,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -355,7 +355,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
},
},
children
:
[
children
:
[
{
{
path
:
'spu/add'
,
// TODO @puhui999:最好拆成 add 和 edit 两个路由;添加商品;修改商品 fix
path
:
'spu/add'
,
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
name
:
'ProductSpuAdd'
,
name
:
'ProductSpuAdd'
,
meta
:
{
meta
:
{
...
@@ -370,7 +370,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -370,7 +370,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
{
path
:
'spu/edit/:spuId(\\d+)'
,
path
:
'spu/edit/:spuId(\\d+)'
,
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
name
:
'
p
roductSpuEdit'
,
name
:
'
P
roductSpuEdit'
,
meta
:
{
meta
:
{
noCache
:
true
,
noCache
:
true
,
hidden
:
true
,
hidden
:
true
,
...
@@ -383,7 +383,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -383,7 +383,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
{
path
:
'spu/detail/:spuId(\\d+)'
,
path
:
'spu/detail/:spuId(\\d+)'
,
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
component
:
()
=>
import
(
'@/views/mall/product/spu/addForm.vue'
),
name
:
'
p
roductSpuDetail'
,
name
:
'
P
roductSpuDetail'
,
meta
:
{
meta
:
{
noCache
:
true
,
noCache
:
true
,
hidden
:
true
,
hidden
:
true
,
...
...
src/views/mall/product/spu/index.vue
View file @
d31ade7a
...
@@ -400,7 +400,7 @@ const openForm = (id?: number) => {
...
@@ -400,7 +400,7 @@ const openForm = (id?: number) => {
return
return
}
}
// 新增
// 新增
push
(
'/product/spu/add'
)
push
(
{
name
:
'ProductSpuAdd'
}
)
}
}
/**
/**
...
...
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