account
This commit is contained in:
@@ -54,7 +54,7 @@ export default defineNuxtConfig({
|
|||||||
"/api": {
|
"/api": {
|
||||||
target: "http://localhost:8000/api",
|
target: "http://localhost:8000/api",
|
||||||
prependPath: true,
|
prependPath: true,
|
||||||
changeOrigin: true
|
changeOrigin: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ const submit = async () => {
|
|||||||
submitting.value = true
|
submitting.value = true
|
||||||
const { data, error } = await useFetch('/api/account/login/', {
|
const { data, error } = await useFetch('/api/account/login/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
credentials: 'omit',
|
|
||||||
body: JSON.stringify(formData.value)
|
body: JSON.stringify(formData.value)
|
||||||
})
|
})
|
||||||
if (error.value) {
|
if (error.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user