租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
385 B

"use strict";
const common_vendor = require("../../common/vendor.js");
const requestInterceptors = (vm) => {
common_vendor.index.$uv.http.interceptors.request.use((config) => {
config.data = config.data || {};
return config;
}, (config) => (
// 可使用async await 做异步操作
Promise.reject(config)
));
};
exports.requestInterceptors = requestInterceptors;