Blame view
src/store/request.js
492 Bytes
e2eaa8a22 请求地址提取 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
const DOMAIN = 'https://api.glass.xiuyetang.com/'; export default async function request({ url, success, fail, complete, }) { console.log("DOMAIN", DOMAIN, url); uni .request({ url: DOMAIN + url, method: "post", data: {}, header: { "Content-Type": "application/x-www-form-urlencoded", }, timeout: 3000, withCredentials: false, success, fail, complete, }) } |