From 07551be48598b07b11f6464f8b3a6dd1988afcf0 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 2 Aug 2024 15:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=83=AD=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 35a9037..66cea89 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -110,7 +110,7 @@ export default { return { dayjs, query: { - productId:'', + productId: '', name: '', categoryId: '', typeEnum: '' @@ -172,11 +172,10 @@ export default { }, // 设置热门 async changeHot(e, row) { - console.log(row) try { this.tableData.loading = true await tbProductIsHot({ - shopId: localStorage.getItem('shopId'), + isHot: e, id: row.id }) this.getTableData() @@ -203,7 +202,7 @@ export default { async getTableData() { try { let localQuery = JSON.parse(localStorage.getItem('shopIndexQuery')) - if (localQuery != null&&localQuery.hasOwnProperty('productId')) { + if (localQuery != null && localQuery.hasOwnProperty('productId')) { this.query = localQuery } @@ -214,7 +213,7 @@ export default { size: this.tableData.size, name: this.query.name, categoryId: this.query.categoryId, - id:this.query.productId, + id: this.query.productId, typeEnum: this.query.typeEnum, shopId: localStorage.getItem('shopId') })