first commit
This commit is contained in:
14
resources/admin/composables/curd/useShow.ts
Normal file
14
resources/admin/composables/curd/useShow.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user