Commit ec36f4f8 authored by 何毅恒's avatar 何毅恒

同上

parent 5a8e43cd
......@@ -122,10 +122,15 @@ const getInformationCategory = async () => {
}
};
// 获取二级分类
let firstJump = true;
const getSecondInformationCategory = async (parent_id, key) => {
let res = await post("information/getInformationCategory", { parent_id });
if (res.code == 0) {
categoryList.value[key].secondCategoryList = res.data;
categoryList.value[key].secondCategoryList = res.data;
if (firstJump) {
jump(parent_id, res.data[0].id, res.data[0].cat_name);
firstJump = false;
}
}
};
......@@ -133,6 +138,7 @@ const toIndex = (): void => {
window.location.href = "https://gelifood.com/";
};
const jump = (category_id_1, category_id_2, cat_name): void => {
// console.log(111111, category_id_1, category_id_2, cat_name);
router.push(
"/pc/pcArticleList?category_id_1=" +
category_id_1 +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment