提交 0756ad59 作者: 毛细亚

同步代码

上级 76383819
...@@ -58,7 +58,6 @@ import { getParams } from '@/utils/index' ...@@ -58,7 +58,6 @@ import { getParams } from '@/utils/index'
import { mapMutations,mapState } from 'vuex' import { mapMutations,mapState } from 'vuex'
import { getToken,setToken } from '@/utils/auth' import { getToken,setToken } from '@/utils/auth'
import jsApiList from '@/utils/jsApiList' import jsApiList from '@/utils/jsApiList'
console.log(jsApiList,'jsApiList')
export default { export default {
data() { data() {
return { return {
...@@ -76,7 +75,7 @@ export default { ...@@ -76,7 +75,7 @@ export default {
redirectUri: process.env.NODE_ENV === 'production' ? 'https://companywx.zwnet.cn/api/api/sidebar_login/ding' : 'https://companywx.zwwlkj03.top/api/api/sidebar_login/ding', redirectUri: process.env.NODE_ENV === 'production' ? 'https://companywx.zwnet.cn/api/api/sidebar_login/ding' : 'https://companywx.zwwlkj03.top/api/api/sidebar_login/ding',
DDTestUrl:'', DDTestUrl:'',
} }
}, },
async mounted() { async mounted() {
await this.initOrganization(); await this.initOrganization();
const urlParams = getParams(); const urlParams = getParams();
...@@ -272,7 +271,7 @@ export default { ...@@ -272,7 +271,7 @@ export default {
const url = `https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=${appid}&response_type=code&scope=snsapi_login&state=${state}&redirect_uri=${this.redirectUri}&loginTmpCode=${loginTmpCode}`; const url = `https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=${appid}&response_type=code&scope=snsapi_login&state=${state}&redirect_uri=${this.redirectUri}&loginTmpCode=${loginTmpCode}`;
console.log(url,'回调 url') console.log(url,'回调 url')
this.DDTestUrl = url this.DDTestUrl = url
window.location.href = url; // window.location.href = url;
}, },
// 7. 钉钉扫码回调页面处理 // 7. 钉钉扫码回调页面处理
async handleDingCallback() { async handleDingCallback() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论