|
@@ -116,7 +116,7 @@ const addCart = async (item) => {
|
|
|
|
|
|
|
|
|
|
Loading.hide();
|
|
Loading.hide();
|
|
- if (result.data.status!=200) {
|
|
|
|
|
|
+ if (result.data.status==200) {
|
|
return Dialog.toast({ content: `添加成功`, type: 'success' })
|
|
return Dialog.toast({ content: `添加成功`, type: 'success' })
|
|
} else{
|
|
} else{
|
|
return Dialog.toast({ content: `登录状态失效,添加失败`, type: 'error' })
|
|
return Dialog.toast({ content: `登录状态失效,添加失败`, type: 'error' })
|