From 02078d3212ad7cf4c89dbee6abf7ca083497c413 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 30 Mar 2023 12:00:12 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/03/30=20-12:00:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchBox.vue | 2 + src/router/index.js | 2 +- src/views/allSections/AllSections.vue | 231 ------------------ src/views/recommend/Recommend.vue | 123 ---------- .../search/searchResult/SearchResult.vue | 8 +- 5 files changed, 5 insertions(+), 361 deletions(-) delete mode 100755 src/views/allSections/AllSections.vue delete mode 100755 src/views/recommend/Recommend.vue diff --git a/src/components/SearchBox.vue b/src/components/SearchBox.vue index c13709b..94fd1ec 100755 --- a/src/components/SearchBox.vue +++ b/src/components/SearchBox.vue @@ -23,6 +23,8 @@
香港大学 香港大学 + 香港大学 + 香港大学
diff --git a/src/router/index.js b/src/router/index.js index fa95c1d..b6a7f4e 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -51,7 +51,7 @@ const routes = [ title: "全部版块" } }, - + ] }, { path: '/searchResult', // 搜索结果 diff --git a/src/views/allSections/AllSections.vue b/src/views/allSections/AllSections.vue deleted file mode 100755 index 4471f89..0000000 --- a/src/views/allSections/AllSections.vue +++ /dev/null @@ -1,231 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/recommend/Recommend.vue b/src/views/recommend/Recommend.vue deleted file mode 100755 index 0edde0b..0000000 --- a/src/views/recommend/Recommend.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue index a5dee48..03656f4 100755 --- a/src/views/search/searchResult/SearchResult.vue +++ b/src/views/search/searchResult/SearchResult.vue @@ -83,12 +83,8 @@ export default { methods: { // 处理点击取消的返回上一页 handCancel() { - // console.log("this.$router",this.$route.params.page > 214); - this.$router.go(-1) - // console.log(this.$router.params.page, "this.$route.params.page"); - // if (this.$route.params.page > 1) this.$router.go(-1) - // else this.$router.push('/recommend') - + if (this.$route.fullPath != "/") this.$router.go(-1) + else this.$router.push('/recommend') }, }, }