Merge remote-tracking branch 'origin/master'

pull/80/MERGE
YunaiV 2024-08-15 09:24:49 +08:00
commit 0575bd56b0
2 changed files with 7 additions and 2 deletions

View File

@ -49,7 +49,6 @@
}); });
// //
const bgStyle = computed(() => { const bgStyle = computed(() => {
console.log(props.data)
// props.styles // props.styles
const { const {
bgType, bgType,

View File

@ -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();
} }