From 895d5546f725d0b143dc68a9e9c0d1fa8bb48e40 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Mon, 3 Apr 2023 12:40:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/04/03=20-12:40:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HeaderNav.vue | 16 ++++++++++------ src/views/index/allSections/AllSections.vue | 10 ---------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/components/HeaderNav.vue b/src/components/HeaderNav.vue index 87c8188..5de69b9 100755 --- a/src/components/HeaderNav.vue +++ b/src/components/HeaderNav.vue @@ -29,9 +29,9 @@
-
+
-
2
+
{{ userInfo.messagenum }}
@@ -78,6 +78,7 @@ export default { islogin: false, userInfo: {}, menu: [], + hotSearchkeywords: [], // 热门搜索 }; }, props: ["issearch", "needgetuser", "userinfo"], @@ -118,12 +119,15 @@ export default { this.$http.post("/api/index",).then((res) => { if (res.code != 200) return; // this.prototype.userInfo = res.data.user - this.userInfo = res.data.user; + // this.userInfo = res.data.user; this.islogin = res.data.user.uid > 0 ? true : false; - console.log(this.userInfo, "userInfo"); + this.hotSearchkeywords = res.data.hotSearchkeywords + this.prototype.userInfo = res.data.user + console.log(this.prototype.userInfo, "userInfo"); + }).catch(err => { - this.$message.error(err.message) - }); + this.$message.error(err.message) + }); }, getMenu() { diff --git a/src/views/index/allSections/AllSections.vue b/src/views/index/allSections/AllSections.vue index 813b251..9c1f591 100755 --- a/src/views/index/allSections/AllSections.vue +++ b/src/views/index/allSections/AllSections.vue @@ -51,7 +51,6 @@ export default { methods: { allClick(index) { this.allActive = index - console.log(index); }, starClick(k) { // if (this.starList[k].checked) this.starList[k].checked = false @@ -66,7 +65,6 @@ export default { if (res.code != 200) return; this.list = res.data - console.log(this.list, "list"); }).catch(err => { this.$message.error(err.message) }); @@ -77,14 +75,6 @@ export default { }, - - created() { - console.log("dfgkljdflkdfgj"); - console.log(this.allActive); - - - // https://forum.gter.net - } }