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.
46 lines
579 B
46 lines
579 B
/**
|
|
* Mock数据
|
|
*/
|
|
|
|
|
|
// this.$u.api.queryElectricityInfoReport
|
|
|
|
|
|
export default {
|
|
|
|
}
|
|
|
|
const oldRequest = uni.request;
|
|
|
|
const opts = {
|
|
url: '',
|
|
data: '',
|
|
header: {},
|
|
method: '',
|
|
timeout: '',
|
|
dataType: '',
|
|
responseType: '',
|
|
sslVerify: '',
|
|
withCredentials: '',
|
|
firstIpv4: '',
|
|
success: '',
|
|
fail: '',
|
|
complete: '',
|
|
}
|
|
|
|
uni.request = async (opts) => {
|
|
console.log(1231);
|
|
const data = await oldRequest({
|
|
url: "https://baidu.com",
|
|
method: "GET"
|
|
})
|
|
let [error, res] = data;
|
|
console.log(error);
|
|
console.log(res);
|
|
}
|
|
|
|
export default {
|
|
install(Vue, opts) {
|
|
|
|
}
|
|
}
|
|
|