100011797 3 лет назад
Родитель
Сommit
7c724cfe62
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/pages/rule-engine/Scene/Save/action/notify/index.tsx

+ 2 - 2
src/pages/rule-engine/Scene/Save/action/notify/index.tsx

@@ -1,6 +1,6 @@
-import { observe } from '@formily/reactive';
 import { Modal, Button, Steps } from 'antd';
 import { useState } from 'react';
+import { observer } from '@formily/react';
 
 // const NotifyeModel = model<{
 //   steps: <{title: string, content: ReactNode}>[]
@@ -8,7 +8,7 @@ import { useState } from 'react';
 //   current: {}
 // });
 
-export default observe(() => {
+export default observer(() => {
   const [current, setCurrent] = useState(0);
   const steps = [
     {