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, // 购物车商品数