hookehuyr

fix 报错提示修改

/*
* @Date: 2022-05-18 22:56:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-07-05 23:27:51
* @FilePath: /tswj/src/api/fn.js
* @LastEditTime: 2022-11-21 17:12:28
* @FilePath: /data-table/src/api/fn.js
* @Description: 文件描述
*/
import axios from '@/utils/axios';
import { Toast } from 'vant';
import qs from 'Qs'
import { showSuccessToast, showFailToast } from 'vant';
/**
* 网络请求功能函数
......@@ -21,12 +21,8 @@ export const fn = (api) => {
return res.data || true;
} else {
// tslint:disable-next-line: no-console
console.warn(res);
if (!res.data.show) return false;
Toast({
icon: 'close',
message: res.data.msg
});
// if (!res.data.show) return false;
showFailToast(res.data.msg);
return false;
}
})
......