tremble 3 лет назад
Родитель
Сommit
c457eaff91
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/Tags/goods-list.vue

+ 1 - 1
src/components/Tags/goods-list.vue

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