Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page与page之间可以通过json共享数据吗? #71

Closed
rudyxu1102 opened this issue Jun 5, 2019 · 1 comment
Closed

page与page之间可以通过json共享数据吗? #71

rudyxu1102 opened this issue Jun 5, 2019 · 1 comment

Comments

@rudyxu1102
Copy link
Contributor

rudyxu1102 commented Jun 5, 2019

比如说一个列表页面,和一个详情页面

@RickCole21
Copy link
Contributor

RickCole21 commented Jun 5, 2019

列表页里可以在跳转链接后面加参数例如:

{
  type: 'action', 
  actionType: 'link',
  link: '/detail?id=${jobId}'
}

然后在这个详情页里接口请求时直接通过${id}去获取链接里面的参数id

initApi:'/api/getdetail?id=${id}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants