소스 검색

在锁定时,不在自动保存

mxd 3 년 전
부모
커밋
9a46d83f62
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      magic-editor/src/console/src/components/editor/magic-script-editor.vue

+ 2 - 2
magic-editor/src/console/src/components/editor/magic-script-editor.vue

@@ -491,11 +491,11 @@ export default {
           content: '请打开接口在执行测试'
         })
       } else {
-        bus.$emit('switch-tab','request')
         if (this.info.running || this.info._type !== 'api') {
           return
         }
-        if (contants.AUTO_SAVE) {
+        bus.$emit('switch-tab','request')
+        if (contants.AUTO_SAVE && this.info.lock !== '1') {
           // 自动保存
           let resp = this.doSave()
           resp && resp.end((successed) => {