diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss index dd8744f0c..89029076d 100644 --- a/nezha-fronted/src/assets/css/common.scss +++ b/nezha-fronted/src/assets/css/common.scss @@ -576,6 +576,6 @@ textarea { .el-icon-arrow-left{ font-family: nz-icon!important; } -.el-icon-check::before{ - content: '\e778'; +.el-icon-arrow-left::before{ + content: '\e6ae'; } diff --git a/nezha-fronted/src/components/common/mixin/dataList.js b/nezha-fronted/src/components/common/mixin/dataList.js index f6df9565e..5701d3552 100644 --- a/nezha-fronted/src/components/common/mixin/dataList.js +++ b/nezha-fronted/src/components/common/mixin/dataList.js @@ -96,7 +96,12 @@ export default { if (this.switchTab) { dataListParam.switchTab = this.switchTab } - const path = this.$route.fullPath.match(/\/(\S*)\?/)[1] + let path = this.$route.fullPath.match(/\/(\S*)\?/) + if (!path) { + path = '' + } else { + path = path[1] + } this.updatePath(dataListParam, path) this.$get(this.url, { ...this.searchLabel, ...this.searchCheckBox }).then(response => { this.tools.loading = false diff --git a/nezha-fronted/src/components/page/config/system/systemCommon.js b/nezha-fronted/src/components/page/config/system/systemCommon.js index 6c919bdf6..41a3ff27b 100644 --- a/nezha-fronted/src/components/page/config/system/systemCommon.js +++ b/nezha-fronted/src/components/page/config/system/systemCommon.js @@ -110,7 +110,12 @@ export const parentTableCommon = { // if (this.switchTab) { // systemParam.switchTab = this.switchTab // } - const path = this.$route.fullPath.match(/\/(\S*)\?/)[1] + let path = this.$route.fullPath.match(/\/(\S*)\?/) + if (!path) { + path = '' + } else { + path = path[1] + } this.updatePath(systemParam, path) this.$get(this.url, this.searchLabel).then(response => { this.tools.loading = false @@ -128,7 +133,12 @@ export const parentTableCommon = { } }, created () { - const path = this.$route.fullPath.match(/\/(\S*)\?/)[1] + let path = this.$route.fullPath.match(/\/(\S*)\?/) + if (!path) { + path = '' + } else { + path = path[1] + } let searchKeys = {} if (path === 'link') { searchKeys = {