From c91e94063135c5ae79590057b37790b2d6ca5650 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Fri, 13 May 2022 21:18:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=9C=AA=E5=BC=95=E5=85=A5=E4=BD=BF=E7=94=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/module/header/HeaderCategory.vue | 2 ++ layouts/module/header/index.vue | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/module/header/HeaderCategory.vue b/layouts/module/header/HeaderCategory.vue index 280fbce..8460bba 100644 --- a/layouts/module/header/HeaderCategory.vue +++ b/layouts/module/header/HeaderCategory.vue @@ -65,12 +65,14 @@ import { ApiGetCategoryOneList, ApiGetCategoryTwoAndGoods, } from "@/plugins/api/goods"; +import { CATEGROY_LEVEL } from "@/constants"; const CATEGROY_HIDE_PAGES = [/\/account/]; // 隐藏热门分类tab的页面 export default { name: "HeaderCategory", data() { return { + CATEGROY_LEVEL, categroyTwoVisible: false, // 是否展示二级分类 categroyVisible: false, // 是否展示一级分类 currentCategroyId: 0, // 当前鼠标悬停的一级分类id diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index 9a56599..47489e7 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -121,7 +121,6 @@ export default { }, data() { return { - CATEGROY_LEVEL, searchContent: "", tabPath: "/", cartCount: 0, // 购物车商品数