fixing url login
This commit is contained in:
parent
bb158a9765
commit
b44076d99d
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import { useQuasar } from 'quasar'
|
||||||
import { useCounterMixin } from '@/stores/mixin'
|
import { useCounterMixin } from '@/stores/mixin'
|
||||||
import { setAuthen, authenticated } from '@/plugins/auth'
|
import { setAuthen, authenticated } from '@/plugins/auth'
|
||||||
import CustomComponent from '@/components/CustomDialog.vue'
|
import CustomComponent from '@/components/CustomDialog.vue'
|
||||||
|
import env from '@/api/index'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const mixin = useCounterMixin()
|
const mixin = useCounterMixin()
|
||||||
|
|
@ -23,7 +24,7 @@ async function onSubmit() {
|
||||||
formdata.append('password', password.value)
|
formdata.append('password', password.value)
|
||||||
|
|
||||||
await axios
|
await axios
|
||||||
.post(`${import.meta.env.VITE_API_URI_CONFIG}/org/login`, formdata, {
|
.post(`${env.API_URI}/org/login`, formdata, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue