lanjianrong 4 jaren geleden
bovenliggende
commit
4d83c19dea
1 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 5 3
      src/pages/Hr/Notification/components/RighEditor.jsx

+ 5 - 3
src/pages/Hr/Notification/components/RighEditor.jsx

@@ -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 (