|
|
@@ -13,6 +13,7 @@ const RighEditor = ({ value, onChange }) => {
|
|
|
onChange(content)
|
|
|
}
|
|
|
useEffect(() => {
|
|
|
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
const vditor = new Vditor('vditor', {
|
|
|
height: 200,
|
|
|
toolbarConfig: {
|
|
|
@@ -25,9 +26,10 @@ const RighEditor = ({ value, onChange }) => {
|
|
|
cache: {
|
|
|
enable: false
|
|
|
},
|
|
|
- after() {
|
|
|
- vditor.setValue('请输入通知内容')
|
|
|
- }
|
|
|
+ placeholder: '请键入内容'
|
|
|
+ // after() {
|
|
|
+ // vditor.setValue('请输入通知内容')
|
|
|
+ // }
|
|
|
})
|
|
|
}, [])
|
|
|
return (
|