Skip to content

Commit 9476eab

Browse files
青羽青羽
authored andcommitted
fix save button is not displayed
1 parent 6fb5386 commit 9476eab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/js/module/workbench/script/editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
return this.script.running;
113113
},
114114
isHdfs() {
115-
return this.work.filepath.indexOf('/tmp') === 7;
115+
return this.work.filepath.indexOf('hdfs') === 0;
116116
},
117117
},
118118
watch: {

src/js/module/workbench/script/script.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,9 @@ export default {
757757
scriptContent: this.script.data,
758758
params: this.formatParams(this.script.params),
759759
};
760-
const isHdfs = this.work.filepath.indexOf('/tmp');
760+
const isHdfs = this.work.filepath.indexOf('hdfs') === 0;
761761
if (this.script.data) {
762-
if (this.work.unsave && isHdfs !== 0) {
762+
if (this.work.unsave && !isHdfs) {
763763
if (this.work.filepath) {
764764
this.work.unsave = false;
765765
this.saveLoading = true;

0 commit comments

Comments
 (0)