WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2025-01-16 e4bc100e00845f62b6c83dd28fc216ff78c62031
bases/Fetcher.js
@@ -64,12 +64,8 @@
    spellURL(devSuffix, serSuffix) {
        let url = '';
        // mock地址
        if ($hostBoot.isDevMod()) {
            if ($hostBoot.isOnMock())  {
                url = this._data.urlPrefix[0].replace('api/', '') + devSuffix + '.json';
            } else {
                url = this._data.urlPrefix[0] + devSuffix;
            }
        if ($hostBoot.isOnMock()) {
            url = this._data.urlPrefix[0].replace('api/', '') + devSuffix + '.json';
        }
        // 正常地址
        else {
@@ -129,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) => {
@@ -594,7 +590,7 @@
            title: msg,
            icon: 'none',
            mask: false,
            duration: type === 'fail' ? 3000 : 2000,
            duration: (type === 'fail' || type === 'error') ? 3000 : 2000,
        });
    }