From 0772dd87506c80a5325a752ed92cac710bdb9a57 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: Wed, 27 Aug 2025 14:02:22 +0800 Subject: [PATCH] bugfix --- f/web-kboss/src/permission.js | 2 +- f/web-kboss/src/router/index.js | 6 ++++++ f/web-kboss/src/views/demoDify/index.vue | 17 +++++++++++++++++ .../ncmatch/mainPage/productCard/index.vue | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 f/web-kboss/src/views/demoDify/index.vue diff --git a/f/web-kboss/src/permission.js b/f/web-kboss/src/permission.js index fe87c84..2531e77 100644 --- a/f/web-kboss/src/permission.js +++ b/f/web-kboss/src/permission.js @@ -106,7 +106,7 @@ router.beforeEach(async (to, from, next) => { // NProgress.done(); // return // } - if (to.path.includes("/ncmatchHome")||to.path.includes("/kyyForm") || to.path.includes("/screen") || to.path.includes("/beforeLogin") || to.path.includes("/wxDetailPage") || to.path.includes("/wxPage") || to.path.includes("/login") || to.path.includes("/homePage") || to.path.includes("/registrationPage") || to.path.includes("/payPage") || to.path.includes("/paySuccess") || to.path.includes("/homePageImage")) { + if (to.path.includes("/demoDify")||to.path.includes("/ncmatchHome")||to.path.includes("/kyyForm") || to.path.includes("/screen") || to.path.includes("/beforeLogin") || to.path.includes("/wxDetailPage") || to.path.includes("/wxPage") || to.path.includes("/login") || to.path.includes("/homePage") || to.path.includes("/registrationPage") || to.path.includes("/payPage") || to.path.includes("/paySuccess") || to.path.includes("/homePageImage")) { console.log("to", to) try { if (to.path.includes("/beforeLogin") || to.path.includes("/registrationPage")) { diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js index b3a4d9d..e8199b2 100644 --- a/f/web-kboss/src/router/index.js +++ b/f/web-kboss/src/router/index.js @@ -65,6 +65,12 @@ export const constantRoutes = [ component: () => import('@/views/beforeLogin/index.vue'), hidden: true }, + { + path: '/demoDify', + name: 'DemoDify', + title: 'DemoDify', + component: () => import('@/views/demoDify/index.vue'), + }, { path: '/wxPage', diff --git a/f/web-kboss/src/views/demoDify/index.vue b/f/web-kboss/src/views/demoDify/index.vue new file mode 100644 index 0000000..8d14328 --- /dev/null +++ b/f/web-kboss/src/views/demoDify/index.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue index 6ff2c0b..c300be3 100644 --- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue @@ -248,7 +248,7 @@ export default { }else if(item.favorite=='0'){ reqPublishProductCollect({ - productid:item.productid, + productid:item.productid?item.productid:item.id, favorite_type:item.publish_type }).then(res=>{ item.favorite='1'