@deanwu/vue-component-library 1.3.114 → 1.3.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56026,7 +56026,15 @@ function global_install(Vue, config) {
56026
56026
  delete axios_default.a.requestQueue[index];
56027
56027
  loading && loading.close();
56028
56028
  if (opt.responseType == 'blob') {
56029
- opt.success(res);
56029
+ try {
56030
+ opt.success(res);
56031
+ } catch (e) {
56032
+ this.$message({
56033
+ type: 'fail',
56034
+ message: '程序出现未知异常'
56035
+ });
56036
+ console.error(e);
56037
+ }
56030
56038
  return;
56031
56039
  }
56032
56040
  try {
@@ -56066,7 +56074,7 @@ function global_install(Vue, config) {
56066
56074
  config.request.log && console.group(`----- error ${opt.url.split('?')[0]} -----`);
56067
56075
  config.request.log && console.log('@param', param);
56068
56076
  config.request.log && console.log('@return', res);
56069
- if (!opt.error || opt.error() !== false) {
56077
+ if (!opt.error || opt.error(res.data) !== false) {
56070
56078
  this.$message({
56071
56079
  type: 'fail',
56072
56080
  message: '数据出现未知异常'