generated from VLADIMIR/template_frontend
fix login
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick, watch, onMounted } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { getApiUrl } from './net';
|
||||
import { encodeUTF8ToBase64, getApiUrl } from './utils';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
@@ -35,7 +35,7 @@
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
"X-Id": login.value,
|
||||
"X-Id": encodeUTF8ToBase64(login.value),
|
||||
"X-Password": password.value
|
||||
},
|
||||
}
|
||||
@@ -65,7 +65,7 @@
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"X-Id": login.value,
|
||||
"X-Id": encodeUTF8ToBase64(login.value),
|
||||
"X-Password": password.value
|
||||
},
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user