feat: 配置clientId

This commit is contained in:
zoujing
2025-09-16 17:04:50 +08:00
parent 191d2394c5
commit 8d0c93206b
3 changed files with 35 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import {
} from "../request/api/LoginApi";
import { getWeChatAuthCode } from "./AuthManager";
import { useAppStore } from "@/store";
import { clientId } from "@/constant/base";
const loginAuth = () => {
return new Promise(async (resolve, reject) => {
@@ -14,7 +15,7 @@ const loginAuth = () => {
openIdCode: [openIdCode],
grant_type: "wechat",
scope: "server",
clientId: "2",
clientId: clientId,
});
console.log("获取到的微信授权response:", response);