UNPKG

@wanghonggan/uv-ui

Version:

uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。

34 lines (31 loc) 686 B
/** * 默认的全局配置 */ export default { baseURL: '', header: {}, method: 'GET', dataType: 'json', paramsSerializer: null, // #ifndef MP-ALIPAY responseType: 'text', // #endif custom: {}, // #ifdef H5 || APP-PLUS || MP-WEIXIN || MP-ALIPAY || MP-TOUTIAO || MP-KUAISHOU timeout: 60000, // #endif // #ifdef APP-PLUS sslVerify: true, // #endif // #ifdef H5 withCredentials: false, // #endif // #ifdef APP-PLUS firstIpv4: false, // #endif validateStatus: function validateStatus(status) { return status >= 200 && status < 300 }, // 是否尝试将响应数据json化 forcedJSONParsing: true }