WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-11-08 b85aa12acad18f3b0ce9d590a87e5f4016ed9b1a
bases/Fetcher.js
@@ -110,7 +110,7 @@
     * @param {object} [options]
     * @return {Promise<any>}
     */
    get(url, data, options = null) {
    get(url, data, options = {}) {
        const params = Qs.stringify(data);
        if (url.indexOf('?') >= 0) {
            url += '&' + params;
@@ -127,7 +127,7 @@
     * @param {object} [options]
     * @return {Promise<any>}
     */
    post(url, data, options = null) {
    post(url, data, options = {}) {
        if (this._data.mock === 'on') {
            return this.get(url, data, options);
        }