liyongli 2 years ago
parent
commit
f20a5c4637
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -64,7 +64,7 @@ export default function (ori) {
             ? JSON.parse(this.responseText || "{}")
             : {};
       } catch (err) {
-        !noToast && showToast("请求失败");
+        !noToast && showToast(defaultErrorToast);
         console.error(err);
         reject(err);
       }