修改微信重新授权的问题
This commit is contained in:
@ -124,7 +124,7 @@ export function clearAuthStatus() {
|
|||||||
|
|
||||||
export function oAuth() {
|
export function oAuth() {
|
||||||
console.log('处理微信授权')
|
console.log('处理微信授权')
|
||||||
console.log('处理微信授权cookie',cookie.get("spread"))
|
console.log('处理微信授权cookie', cookie.get("spread"))
|
||||||
console.log(store)
|
console.log(store)
|
||||||
console.log(store.state)
|
console.log(store.state)
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@ -167,9 +167,9 @@ export function auth(code) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function toAuth() {
|
export function toAuth() {
|
||||||
// wechat().then(wx => {
|
wechat().then(wx => {
|
||||||
location.href = getAuthUrl("wxc061dee8806ff712");
|
location.href = getAuthUrl(appId);
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAuthUrl(appId) {
|
function getAuthUrl(appId) {
|
||||||
|
Reference in New Issue
Block a user