😎修复动态插件页面回显代码问题

This commit is contained in:
zuohuaijun 2025-08-06 17:15:12 +08:00
parent 6d3e5440a7
commit ddc80c5261
2 changed files with 5 additions and 5 deletions

View File

@ -78,8 +78,8 @@
"vue-router": "^4.5.1",
"vue-signature-pad": "^3.0.2",
"vue3-tree-org": "^4.2.2",
"vxe-pc-ui": "^4.8.8",
"vxe-table": "^4.15.3",
"vxe-pc-ui": "^4.8.9",
"vxe-table": "^4.15.4",
"xe-utils": "^3.7.8",
"xlsx-js-style": "^1.2.0"
},

View File

@ -79,10 +79,10 @@ const state = reactive({
// monacoEditor
var monacoEditor: any = null;
const initMonacoEditor = () => {
const initMonacoEditor = (code: string) => {
monacoEditor = monaco.editor.create(monacoEditorRef.value, {
theme: 'vs-dark', // vs vs-dark hc-black
value: '', //
value: code, //
language: 'csharp',
formatOnPaste: true,
wordWrap: 'on', //
@ -114,7 +114,7 @@ const openDialog = (row: any) => {
//
setTimeout(() => {
if (monacoEditor == null) initMonacoEditor();
initMonacoEditor(row.csharpCode);
}, 1);
};