Last active
February 18, 2023 22:26
-
-
Save masweb/4e3731fed14bf48ebc8a2e7116db8ab4 to your computer and use it in GitHub Desktop.
#fetch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useApi } from '@/composables/useApi' | |
import type { iBMResp } from '@/Interfaces/interfaces' | |
const resp:iBMResp = await useApi('/eventmultimedias', { | |
method: 'POST', | |
body: formData, | |
}) | |
if (resp.status === 'Success') { | |
pics = resp.data | |
loaded() | |
} else console.log('$fetch error', resp.status, resp.message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment