修改请求接口地址,修改登录参数

This commit is contained in:
2025-02-11 18:10:25 +08:00
parent 6a10005af5
commit a599adc63e
5 changed files with 70 additions and 10 deletions

View File

@@ -78,10 +78,9 @@
<script setup>
import { encrypt } from "@/utils/rsaEncrypt";
import { getCodeImg } from "@/api/login";
import $API_login from "@/api/account/login";
import { $douyin_checkIn } from "@/api/coup/index";
import Cookies from "js-cookie";
import qs from "qs";
import Background from "@/assets/images/background_img.jpg";
import { useUserStore } from "@/store";
import { useRoute } from "vue-router";
@@ -127,9 +126,9 @@ onMounted(() => {
}
});
function getCode() {
getCodeImg().then((res) => {
$API_login.getCaptcha().then((res) => {
console.log(res);
state.codeUrl = res.img;
state.codeUrl = res.code;
state.loginForm.uuid = res.uuid;
});
}