Эх сурвалжийг харах

Merge remote-tracking branch 'origin/master'

YunaiV 1 жил өмнө
parent
commit
0575bd56b0

+ 0 - 1
sheep/components/s-title-block/s-title-block.vue

@@ -49,7 +49,6 @@
 	});
 	});
 	// 设置背景样式
 	// 设置背景样式
 	const bgStyle = computed(() => {
 	const bgStyle = computed(() => {
-		console.log(props.data)
 		// 直接从 props.styles 解构
 		// 直接从 props.styles 解构
 		const {
 		const {
 			bgType,
 			bgType,

+ 7 - 1
sheep/store/cart.js

@@ -57,7 +57,13 @@ const cart = defineStore({
 
 
     // 移除购物车
     // 移除购物车
     async delete(ids) {
     async delete(ids) {
-      const { code } = await CartApi.deleteCart(ids.join(','));
+      let idsTemp = '';
+      if (Array.isArray(ids)) {
+        idsTemp = ids.join(',');
+      } else {
+        idsTemp = ids;
+      }
+      const { code } = await CartApi.deleteCart(idsTemp);
       if (code === 0) {
       if (code === 0) {
         await this.getList();
         await this.getList();
       }
       }