You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
428 B
JavaScript

import {
$post
} from '@/lu/axios.js'
const url_ = "http://code.dev.sa0.online:88";
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()
}
}