整合企微token变量
This commit is contained in:
@@ -23,7 +23,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user', 'token']),
|
||||
...mapState(['user']),
|
||||
showDetail() {
|
||||
return !!this.$route.query?.id && this.access
|
||||
},
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
if (this.isPreview) {
|
||||
this.access = true
|
||||
} else if (this.access) {
|
||||
} else if (!!this.token) {
|
||||
} else if (!!this.user.token) {
|
||||
this.$http.post("/app/appquestionnairetemplate/commitCheck", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
name: "formDetail",
|
||||
inject: {root: {}},
|
||||
computed: {
|
||||
...mapState(['openUser', 'token']),
|
||||
...mapState(['openUser']),
|
||||
isExam() {
|
||||
return this.form?.type == 1
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user