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

前端跳转需要验证 #1

Open
jobsgxx opened this issue May 3, 2023 · 0 comments
Open

前端跳转需要验证 #1

jobsgxx opened this issue May 3, 2023 · 0 comments

Comments

@jobsgxx
Copy link

jobsgxx commented May 3, 2023

router:
{
path: '/home',
name: 'home',
component: Home,
children: [{
path: '/course/choose',
name: 'chooseCourse',
component: chooseCourse,
}]
}
choose-course:
methods:{
getList(){
let _this = this
axios.get("/course/showThis?userId=" + this.$store.getters.getUser.userId + "&pageNum=" +
this.pageNum + "&pageSize=" + this.pageSize,
{
headers:{
"Authoriztion": this.$store.getters.getToken
}
}).then(response => {
console.log(response.data)
_this.tableData = response.data.data.list
_this.total = response.data.data.total
}).catch(err => {})
},
},
版主你好,请教一下,我跟着你的这个项目做的时候发现跳转的时候需要身份校验?感觉像是token没有携带过去?不知道那里出了问题,还请指导一下,谢谢。

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

1 participant