File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
src/js/module/workbench/script Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3737 <span class =" navbar-item-name" >停止</span >
3838 </div >
3939 <div
40- v-if =" !script.readOnly && !isHdfs "
40+ v-if =" !script.readOnly"
4141 class =" workbench-body-navbar-item"
4242 title =" Ctrl+S"
4343 @click =" save" >
4444 <Icon type =" md-checkmark" />
4545 <span class =" navbar-item-name" >保存</span >
4646 </div >
4747 <div
48- v-if =" !script.readOnly && !isHdfs && isSupport"
48+ v-if =" !script.readOnly && isSupport"
4949 class =" workbench-body-navbar-item"
5050 @click =" config" >
5151 <Icon type =" ios-build" />
@@ -111,9 +111,6 @@ export default {
111111 listenResource () {
112112 return this .script .running ;
113113 },
114- isHdfs () {
115- return this .work .filepath .indexOf (' hdfs' ) === 0 ;
116- },
117114 isSupport () {
118115 return this .script .executable ;
119116 }
Original file line number Diff line number Diff line change @@ -757,9 +757,8 @@ export default {
757757 scriptContent: this .script .data ,
758758 params: this .formatParams (this .script .params ),
759759 };
760- const isHdfs = this .work .filepath .indexOf (' hdfs' ) === 0 ;
761760 if (this .script .data ) {
762- if (this .work .unsave && ! isHdfs ) {
761+ if (this .work .unsave ) {
763762 if (this .work .filepath ) {
764763 this .work .unsave = false ;
765764 this .saveLoading = true ;
You can’t perform that action at this time.
0 commit comments