2022-12-05 23:01:12 +08:00

15 lines
302 B
TypeScript

import http from '/admin/support/http'
export function useShow(path: string, id: string | number) {
return new Promise((resolve, reject) => {
http
.get(path + '/' + id)
.then(response => {
resolve(response.data)
})
.catch(e => {
reject(e)
})
})
}