瀏覽代碼

更新登录态失效

tremble 3 年之前
父節點
當前提交
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' })