修改请求接口地址,修改登录参数
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user