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
d1bb7369
authored
Aug 23, 2023
by
绮梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员详情页的跳转携带参数方式改为params
parent
451458eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
src/router/modules/remaining.ts
+1
-1
src/views/member/user/detail/index.vue
+1
-3
src/views/member/user/index.vue
+1
-1
No files found.
src/router/modules/remaining.ts
View file @
d1bb7369
...
@@ -434,7 +434,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -434,7 +434,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
meta
:
{
hidden
:
true
},
meta
:
{
hidden
:
true
},
children
:
[
children
:
[
{
{
path
:
'user/detail'
,
path
:
'user/detail
/:member_id
'
,
name
:
'MemberUserDetail'
,
name
:
'MemberUserDetail'
,
meta
:
{
meta
:
{
title
:
'会员详情'
,
title
:
'会员详情'
,
...
...
src/views/member/user/detail/index.vue
View file @
d1bb7369
...
@@ -200,9 +200,7 @@ const openForm = (type: string, id?: number) => {
...
@@ -200,9 +200,7 @@ const openForm = (type: string, id?: number) => {
/** 初始化 */
/** 初始化 */
const
route
=
useRoute
()
const
route
=
useRoute
()
const
router
=
useRouter
()
const
router
=
useRouter
()
// TODO @梦:改成 id 路径参数,而不是 query
const
member_id
=
route
.
params
.
member_id
as
number
// TODO @梦:会员列表,把【详情】按钮加上哈
const
member_id
=
route
.
query
.
member_id
as
number
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
!
member_id
)
{
if
(
!
member_id
)
{
// TODO
// TODO
...
...
src/views/member/user/index.vue
View file @
d1bb7369
...
@@ -183,7 +183,7 @@ const resetQuery = () => {
...
@@ -183,7 +183,7 @@ const resetQuery = () => {
const
{
push
}
=
useRouter
()
const
{
push
}
=
useRouter
()
const
goMemberDetail
=
(
id
:
number
)
=>
{
const
goMemberDetail
=
(
id
:
number
)
=>
{
push
({
path
:
'user/detail'
,
query
:
{
member_id
:
id
}
})
push
({
name
:
'MemberUserDetail'
,
params
:
{
member_id
:
id
}
})
}
}
/** 初始化 **/
/** 初始化 **/
...
...
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