feat: 配置clientId
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user