Merge remote-tracking branch 'origin/master'
						commit
						0575bd56b0
					
				|  | @ -49,7 +49,6 @@ | |||
| 	}); | ||||
| 	// 设置背景样式 | ||||
| 	const bgStyle = computed(() => { | ||||
| 		console.log(props.data) | ||||
| 		// 直接从 props.styles 解构 | ||||
| 		const { | ||||
| 			bgType, | ||||
|  |  | |||
|  | @ -57,7 +57,13 @@ const cart = defineStore({ | |||
| 
 | ||||
|     // 移除购物车
 | ||||
|     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) { | ||||
|         await this.getList(); | ||||
|       } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV