From a981e5a6d920bd477fff683158625fad505f4cc8 Mon Sep 17 00:00:00 2001
From: ‘chensiAb’ <‘chenchenco03@163.com’>
Date: Thu, 10 Apr 2025 17:05:03 +0800
Subject: [PATCH] style:自定义导航添加zindex

---
 bases/Fetcher.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bases/Fetcher.js b/bases/Fetcher.js
index fdeea51..54a41c8 100644
--- a/bases/Fetcher.js
+++ b/bases/Fetcher.js
@@ -125,7 +125,7 @@
      * @param {String} url
      * @param {*} [data]
      * @param {object} [options]
-     * @return {Promise<any>|}
+     * @return {Promise<any>}
      */
     query(type, url, data = null, options = {}) {
         return new Promise((resolve, reject) => {
@@ -151,7 +151,7 @@
                     options && options.onCapture && options.onCapture({
                         url: this._createUrlPrefix(options) + url,
                         request: data,
-                        response: response.data,
+                        response: { ...response.data },
                         httpCode: response.statusCode,
                     });
                     /**
@@ -590,7 +590,7 @@
             title: msg,
             icon: 'none',
             mask: false,
-            duration: type === 'fail' ? 3000 : 2000,
+            duration: (type === 'fail' || type === 'error') ? 3000 : 2000,
         });
     }
 

--
Gitblit v1.9.1