From 635622af736aa9d695e0205ba61883ba26eecae6 Mon Sep 17 00:00:00 2001 From: truthhun <1272881215@qq.com> Date: Thu, 6 Jul 2023 18:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E7=82=B9=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E4=B9=9F=E6=89=A7=E8=A1=8C=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/admin/article.vue | 9 ++++----- web/pages/admin/attachment.vue | 9 ++++----- web/pages/admin/banner.vue | 9 ++++----- web/pages/admin/comment.vue | 9 ++++----- web/pages/admin/document/category.vue | 9 ++++----- web/pages/admin/document/list.vue | 9 ++++----- web/pages/admin/document/recycle.vue | 9 ++++----- web/pages/admin/friendlink.vue | 9 ++++----- web/pages/admin/navigation.vue | 9 ++++----- web/pages/admin/report.vue | 9 ++++----- web/pages/admin/user/group.vue | 9 ++++----- web/pages/admin/user/list.vue | 9 ++++----- web/pages/admin/user/permission.vue | 9 ++++----- web/pages/admin/user/punishment.vue | 9 ++++----- 14 files changed, 56 insertions(+), 70 deletions(-) diff --git a/web/pages/admin/article.vue b/web/pages/admin/article.vue index 875cf5a..5fe0bab 100644 --- a/web/pages/admin/article.vue +++ b/web/pages/admin/article.vue @@ -171,11 +171,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === + this.$router.resolve({ + query: this.search, + }).href ) { this.listArticle() } else { diff --git a/web/pages/admin/attachment.vue b/web/pages/admin/attachment.vue index 750c375..8f26fc4 100644 --- a/web/pages/admin/attachment.vue +++ b/web/pages/admin/attachment.vue @@ -144,11 +144,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === + this.$router.resolve({ + query: this.search, + }).href ) { this.listAttachment() } else { diff --git a/web/pages/admin/banner.vue b/web/pages/admin/banner.vue index e1798fc..b434395 100644 --- a/web/pages/admin/banner.vue +++ b/web/pages/admin/banner.vue @@ -143,11 +143,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listBanner() } else { diff --git a/web/pages/admin/comment.vue b/web/pages/admin/comment.vue index b9cef42..bcbc569 100644 --- a/web/pages/admin/comment.vue +++ b/web/pages/admin/comment.vue @@ -175,11 +175,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listComment() } else { diff --git a/web/pages/admin/document/category.vue b/web/pages/admin/document/category.vue index 67d5693..dfa3e3f 100644 --- a/web/pages/admin/document/category.vue +++ b/web/pages/admin/document/category.vue @@ -130,11 +130,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listCategory() } else { diff --git a/web/pages/admin/document/list.vue b/web/pages/admin/document/list.vue index 65c197d..8964384 100644 --- a/web/pages/admin/document/list.vue +++ b/web/pages/admin/document/list.vue @@ -298,11 +298,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listDocument() } else { diff --git a/web/pages/admin/document/recycle.vue b/web/pages/admin/document/recycle.vue index 727f853..7ce7a23 100644 --- a/web/pages/admin/document/recycle.vue +++ b/web/pages/admin/document/recycle.vue @@ -214,11 +214,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listDocument() } else { diff --git a/web/pages/admin/friendlink.vue b/web/pages/admin/friendlink.vue index 0c258f5..663f784 100644 --- a/web/pages/admin/friendlink.vue +++ b/web/pages/admin/friendlink.vue @@ -150,11 +150,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.$router.push({ query: this.search, diff --git a/web/pages/admin/navigation.vue b/web/pages/admin/navigation.vue index e352434..e050ba3 100644 --- a/web/pages/admin/navigation.vue +++ b/web/pages/admin/navigation.vue @@ -160,11 +160,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listNavigation() } else { diff --git a/web/pages/admin/report.vue b/web/pages/admin/report.vue index f8ea78c..a73eca0 100644 --- a/web/pages/admin/report.vue +++ b/web/pages/admin/report.vue @@ -155,11 +155,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listReport() } else { diff --git a/web/pages/admin/user/group.vue b/web/pages/admin/user/group.vue index 3ba4d7c..c908d4e 100644 --- a/web/pages/admin/user/group.vue +++ b/web/pages/admin/user/group.vue @@ -175,11 +175,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listGroup() } else { diff --git a/web/pages/admin/user/list.vue b/web/pages/admin/user/list.vue index 1d6f3de..271c9bc 100644 --- a/web/pages/admin/user/list.vue +++ b/web/pages/admin/user/list.vue @@ -196,11 +196,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listUser() } else { diff --git a/web/pages/admin/user/permission.vue b/web/pages/admin/user/permission.vue index 1555c85..d6b69c2 100644 --- a/web/pages/admin/user/permission.vue +++ b/web/pages/admin/user/permission.vue @@ -133,11 +133,10 @@ export default { onSearch(search) { this.search = { ...this.search, ...search, page: 1 } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listPermission() } else { diff --git a/web/pages/admin/user/punishment.vue b/web/pages/admin/user/punishment.vue index bc4f6c2..52e389a 100644 --- a/web/pages/admin/user/punishment.vue +++ b/web/pages/admin/user/punishment.vue @@ -240,11 +240,10 @@ export default { page: 1, } if ( - location.href.lastIndexOf( - this.$router.resolve({ - query: this.search, - }).href - ) === 0 + location.pathname + location.search === +        this.$router.resolve({ +          query: this.search, +        }).href ) { this.listPunishment() } else {