From 66bc62b262ad8e219cb72264a8cb45e7a1e02ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E7=BE=BD?= Date: Mon, 5 Aug 2019 17:21:37 +0800 Subject: [PATCH] remove the special processing of HDFS files --- src/js/module/workbench/script/editor.vue | 7 ++----- src/js/module/workbench/script/script.vue | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) 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;