Merge branch 'dev-3.2' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.2

This commit is contained in:
zhangyu
2022-03-24 09:55:20 +08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -336,7 +336,10 @@ export default {
}
},
created () {
const path = this.$route.fullPath.match(/\/(\S*)\?/)[1]
let path = ''
if (this.$route.fullPath.match(/\/(\S*)\?/)) {
path = this.$route.fullPath.match(/\/(\S*)\?/)[1]
}
if (this.$route.query.orderBy && !this.isSubList) {
this.orderBy = this.$route.query.orderBy
}