|
@@ -26,22 +26,22 @@ export const webLogin=async ()=>{
|
|
|
if(urlParams.code){//路由中有code
|
|
|
// const res=await apiWxLoginInWeb({code:urlParams.code})
|
|
|
setTimeout(() => {
|
|
|
- let res={
|
|
|
- code:200,
|
|
|
- data:{
|
|
|
- authorization:'d201487b4e9b55d26e13557b766b7ea587adad4f1d7dcb951c49c31913c6ce3a',
|
|
|
- is_bind:false
|
|
|
- }
|
|
|
- }
|
|
|
- if(res.code===200){
|
|
|
- store.commit('showLogin',false)
|
|
|
- store.commit('getToken',res.data.authorization)
|
|
|
- if(!res.data.is_bind){
|
|
|
- store.commit('showBindAccount',true)
|
|
|
- }else{
|
|
|
- window.location.href(import.meta.env.VITE_APP_REDIRECT_URI)
|
|
|
- }
|
|
|
- }
|
|
|
+ // let res={
|
|
|
+ // code:200,
|
|
|
+ // data:{
|
|
|
+ // authorization:'d201487b4e9b55d26e13557b766b7ea587adad4f1d7dcb951c49c31913c6ce3a',
|
|
|
+ // is_bind:false
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if(res.code===200){
|
|
|
+ // store.commit('showLogin',false)
|
|
|
+ // store.commit('getToken',res.data.authorization)
|
|
|
+ // if(!res.data.is_bind){
|
|
|
+ // store.commit('showBindAccount',true)
|
|
|
+ // }else{
|
|
|
+ // window.location.href(import.meta.env.VITE_APP_REDIRECT_URI)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}, 300);
|
|
|
}else{
|
|
|
store.commit('showLogin',true)
|