diff --git a/src/views/pages/autoexec/detail/script-detail.vue b/src/views/pages/autoexec/detail/script-detail.vue index 11d69b39bf558f92d304fb22d27d37462a3180b4..e68d3e2f84cfe66ed95baadc6b580ff7d443e4fb 100644 --- a/src/views/pages/autoexec/detail/script-detail.vue +++ b/src/views/pages/autoexec/detail/script-detail.vue @@ -246,6 +246,9 @@ export default { beforeMount() {}, mounted() { const { scriptId = '', versionId = '', status = '' } = this.$route.query || {}; + if (status) { + this.versionStatus = status; + } if (scriptId) { this.scriptId = parseInt(scriptId); this.getDetail(this.scriptId); @@ -254,9 +257,6 @@ export default { this.versionId = versionId; this.getDetail(parseInt(this.versionId), 'versionId'); } - if (status) { - this.versionStatus = status; - } }, beforeUpdate() {}, updated() {},