diff --git a/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue b/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue index 00f636e2c..7a264d31e 100644 --- a/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue +++ b/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue @@ -23,6 +23,7 @@ const props = defineProps({ type: Object as PropType, default: () => undefined }, + readonly: propTypes.bool.def(false), modelValue: propTypes.string.def('') }) @@ -61,7 +62,7 @@ const editorConfig = computed((): IEditorConfig => { return Object.assign( { placeholder: '请输入内容...', - readOnly: false, + readOnly: props.readonly, customAlert: (s: string, t: string) => { switch (t) { case 'success': diff --git a/yudao-ui-admin-vue3/src/views/system/notice/index.vue b/yudao-ui-admin-vue3/src/views/system/notice/index.vue index eeed4c4f4..239c0b414 100644 --- a/yudao-ui-admin-vue3/src/views/system/notice/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/notice/index.vue @@ -53,7 +53,7 @@ :data="detailData" >