diff --git a/src/js/module/workbench/script/editor.vue b/src/js/module/workbench/script/editor.vue index c1f2abc..7149ce9 100644 --- a/src/js/module/workbench/script/editor.vue +++ b/src/js/module/workbench/script/editor.vue @@ -37,7 +37,7 @@ 停止
@@ -45,7 +45,7 @@ 保存
@@ -111,9 +111,6 @@ export default { listenResource() { return this.script.running; }, - isHdfs() { - return this.work.filepath.indexOf('hdfs') === 0; - }, isSupport() { return this.script.executable; } diff --git a/src/js/module/workbench/script/script.vue b/src/js/module/workbench/script/script.vue index 3e78137..47f22cf 100644 --- a/src/js/module/workbench/script/script.vue +++ b/src/js/module/workbench/script/script.vue @@ -757,9 +757,8 @@ export default { scriptContent: this.script.data, params: this.formatParams(this.script.params), }; - const isHdfs = this.work.filepath.indexOf('hdfs') === 0; if (this.script.data) { - if (this.work.unsave && !isHdfs) { + if (this.work.unsave) { if (this.work.filepath) { this.work.unsave = false; this.saveLoading = true;