WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2025-03-10 c98acc813b9172b18768f6f063bd6dc5d45553cf
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,
        });
    }