优化登录页控制台报错问题
This commit is contained in:
parent
a5f1b1a391
commit
a7f394b3a2
|
|
@ -502,7 +502,7 @@ export default {
|
|||
this.redirect = route.query && route.query.redirect
|
||||
// console.log(this.$route.query.redirect.split("?"))
|
||||
// console.log(this.$route.query.redirect.split("?")[1].split("&"))
|
||||
if (this.$route.query.redirect.split('?').length > 1) {
|
||||
if (this.$route.query.redirect?.split('?').length > 1) {
|
||||
let arr =
|
||||
this.$route.query.redirect.split('?')[1].split('&') ||
|
||||
[]
|
||||
|
|
|
|||
Loading…
Reference in New Issue