Browse Source

更新登录态失效

tremble 3 năm trước cách đây
mục cha
commit
c457eaff91
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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' })