|
@@ -129,6 +129,12 @@ const addCart = async (item) => {
|
|
|
};
|
|
|
|
|
|
const updateProductsById = async (idx) => {
|
|
|
+ console.log();
|
|
|
+ if(!tagclick.value.data.products[idx]){
|
|
|
+ Dialog.toast({ content: `获取商品详情失败,请稍后再试`, type: 'error' })
|
|
|
+ emit('close')
|
|
|
+ return
|
|
|
+ }
|
|
|
Loading.show();
|
|
|
let res = await apis.get_product_info({
|
|
|
// productId: 'p15677829'
|