From f55e8e9f20ad68b17690e7f90d9a1e1bc00fb72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?= <2523890936@qq.com> Date: Thu, 31 Jul 2025 18:11:17 +0800 Subject: [PATCH] bugfix --- .../src/views/homePage/ncmatch/mainPage/index.vue | 9 ++++++--- .../homePage/ncmatch/mainPage/sendProduct/index.vue | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue index 13ea60e..057f334 100644 --- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue @@ -118,9 +118,12 @@ export default Vue.extend({ init_product_list() { reqPublishProductSearchFirstPage({ url_link: window.location.href }).then(res => { if (res.status) { - this.currentHotMenu = res.data[0].id - this.hotProductList = res.data[0].product_list - this.product = res.data + if(res.data.length > 0){ + this.currentHotMenu = res.data[0].id + this.hotProductList = res.data[0].product_list + this.product = res.data + } + } }) }, diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue index 1f5583a..8efc9d1 100644 --- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue @@ -95,7 +95,7 @@ - +