增加 接口检测 和 图片链接

SPY×FAMILY
鹿和sa0ChunLuyu 3 years ago
parent 635bc8c7e8
commit af1b1d4e19

@ -6,3 +6,18 @@ export const yo = async (data) => await $post({
url: 'YO',
data
})
export const $image = (path) => {
return `${url_}${path}`
}
export const $response = (response, then, error = () => {}) => {
if (response) {
if (response.code != 200) {
uni.$lu.toast(response.message);
error()
return
}
then()
}
}

Loading…
Cancel
Save