File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/js/module/workbench/script Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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: {
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments