BUG 30553
This commit is contained in:
@@ -50,6 +50,8 @@ export default {
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.access = true
|
||||
} else if (res?.code == 401) {
|
||||
this.checkAccess()
|
||||
} else {
|
||||
this.err = "无法获取表单"
|
||||
}
|
||||
|
||||
@@ -40,11 +40,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['getCode', 'getToken']),
|
||||
checkAccess() {
|
||||
let {corpId, code, suiteId, id} = this.$route.query
|
||||
checkAccess(review) {
|
||||
let {code, suiteId, id} = this.$route.query
|
||||
if (this.isPreview) {
|
||||
this.access = true
|
||||
} else if (this.access) {
|
||||
} else if (!!this.user.token) {
|
||||
this.$http.post("/app/appquestionnairetemplate/commitCheck", null, {
|
||||
params: {id}
|
||||
@@ -52,7 +51,7 @@ export default {
|
||||
if (res?.code == 0) {
|
||||
this.access = true
|
||||
} else if (res?.code == 401) {
|
||||
this.getCode()
|
||||
this.checkAccess()
|
||||
} else {
|
||||
this.err = "无法获取表单"
|
||||
}
|
||||
@@ -60,12 +59,9 @@ export default {
|
||||
this.err = err
|
||||
})
|
||||
} else if (code) {
|
||||
this.getToken({code, corpId, suiteId, isAppForm: true}).then(() => {
|
||||
let {query, path, hash} = this.$route
|
||||
delete query.code
|
||||
this.root.goto({query, path, hash})
|
||||
})
|
||||
} else this.getCode()
|
||||
this.getToken({code, suiteId}).then(() => this.checkAccess(true))
|
||||
} else if (!review) this.getCode()
|
||||
else this.err = "登录失败!"
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
|
||||
Reference in New Issue
Block a user