update 开关位置

This commit is contained in:
D 2024-03-05 09:38:08 +08:00
parent 9cdf582bd9
commit 23a256d4fd
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import request from '@/utils/request'
*/
export function wxLogin(source,code) {
return request({
url: `/wx/login/${source}/${code}`,
url: `/oauth/wx/login/${source}/${code}`,
headers: {
isToken: false
},
@ -22,7 +22,7 @@ export function wxLogin(source,code) {
*/
export function wxRegister(source,code) {
return request({
url: `/wx/register/${source}/${code}`,
url: `/oauth/wx/register/${source}/${code}`,
headers: {
isToken: true
},

View File

@ -45,7 +45,8 @@ import { wxLogin } from '@/api/oauth';
import { setToken } from '@/utils/auth';
const userStore = useUserStore()
const codeUrl = ref("");
const captchaEnabled = ref(true);
const captchaEnabled = ref(true); //
const useWxLogin = ref(true); // 使
const globalConfig = ref(config);
const loginForm = ref({
username: "admin",
@ -53,7 +54,7 @@ const loginForm = ref({
code: "",
uuid: ''
});
const useWxLogin = ref(true)
if (useWxLogin.value) {
getWxCode().then(res => {
console.log(res);