优化登录页控制台报错问题

This commit is contained in:
BianLzhaoMin 2024-07-26 09:18:16 +08:00
parent a5f1b1a391
commit a7f394b3a2
1 changed files with 1 additions and 1 deletions

View File

@ -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('&') ||
[]