BUG 30756
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['getCode', 'getToken']),
|
...mapActions(['getCode', 'getToken']),
|
||||||
checkAccess(review) {
|
checkAccess(review) {
|
||||||
let {code, suiteId, id} = this.$route.query
|
let {code, suiteId, corpId, id} = this.$route.query
|
||||||
if (this.isPreview) {
|
if (this.isPreview) {
|
||||||
this.access = true
|
this.access = true
|
||||||
} else if (!!this.user.token) {
|
} else if (!!this.user.token) {
|
||||||
@@ -59,7 +59,7 @@ export default {
|
|||||||
this.err = err
|
this.err = err
|
||||||
})
|
})
|
||||||
} else if (code) {
|
} else if (code) {
|
||||||
this.getToken({code, suiteId}).then(() => this.checkAccess(true))
|
this.getToken({code, corpId, suiteId}).then(() => this.checkAccess(true))
|
||||||
} else if (!review) this.getCode()
|
} else if (!review) this.getCode()
|
||||||
else this.err = "登录失败!"
|
else this.err = "登录失败!"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user