diff --git a/src/components/general/codes.vue b/src/components/general/codes.vue index e9d5ec78f55cf06f33193cb12c7a8714ea83361e..1eb47f2945cfcf8b8d69a49c6640f012a65c152d 100644 --- a/src/components/general/codes.vue +++ b/src/components/general/codes.vue @@ -17,7 +17,7 @@ import ace from "ace-builds"; import "ace-builds/webpack-resolver"; // 在 webpack 环境中使用必须要导入 import "ace-builds/src-noconflict/mode-json"; // 默认设置的语言模式 export default { - props: ["url","datas"], + props: ["url","datas",'readOnly'], data() { return { aceEditor: null, @@ -34,7 +34,8 @@ export default { mode: this.acemodePath, wrap: this.wrap, tabSize: 4, - highlightActiveLine: false + highlightActiveLine: false, + readOnly:this.readOnly?this.readOnly:false }); if (this.url) { this.getValue(); diff --git a/src/pages/workbench/yygl/app_debugger.vue b/src/pages/workbench/yygl/app_debugger.vue index 221f51ccd7c388f7b41f81ed62b521b1dc07ee32..f7ec7f3d8080323c132242b0aa29aeb8791266a8 100644 --- a/src/pages/workbench/yygl/app_debugger.vue +++ b/src/pages/workbench/yygl/app_debugger.vue @@ -53,8 +53,8 @@
此操作相当于:kubectl apply -f {{'<'+'spec.yaml'+'>'}}
- - + +