diff --git a/src/saas/AppAskForm/AppForm.vue b/src/saas/AppAskForm/AppForm.vue index 3b10e7fe..a49627cd 100644 --- a/src/saas/AppAskForm/AppForm.vue +++ b/src/saas/AppAskForm/AppForm.vue @@ -44,6 +44,7 @@ export default { let {corpId, code, suiteId, id} = this.$route.query if (this.isPreview) { this.access = true + } else if (this.access) { } else if (!!this.token) { this.$http.post("/app/appquestionnairetemplate/commitCheck", null, { params: {id} @@ -65,12 +66,10 @@ export default { } else this.getCode() }, }, - created() { - this.checkAccess() - }, onShow() { document.title = '问卷调查' wx.hideOptionMenu() + this.checkAccess() }, }