examples 添加 isCancel 实现

This commit is contained in:
liaoxuezhi 2019-05-20 16:59:27 +08:00
parent 18fdfb1878
commit 712861958a

View File

@ -105,6 +105,7 @@ export default function(schema) {
return axios[method](url, data, config);
},
isCancel: value => axios.isCancel(value),
notify: (type, msg) => toast[type] ? toast[type](msg, type === 'error' ? '系统错误' : '系统消息') : console.warn('[Notify]', type, msg),
alert,
confirm,