File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
frontend/image-tool/src/businessNew/pages Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- import { FlowAction , IPageHandler } from '../types' ;
1+ import { IPageHandler } from '../types' ;
22import { useInjectBSEditor } from '../context' ;
33import useDataFlow from '../hook/useDataflow' ;
44import pageModes from '../configs/mode' ;
55import { IFrame , MsgType } from 'image-editor' ;
6- import useCommon from '../hook/useCommon' ;
76
87export function view ( ) : IPageHandler {
98 const editor = useInjectBSEditor ( ) ;
109 const { state, bsState } = editor ;
1110 const { loadClasses, loadDateSetClassification, loadDataFromFrameSeries } = useDataFlow ( ) ;
12- const { onClose } = useCommon ( ) ;
1311
1412 async function init ( ) {
1513 let { query } = bsState ;
@@ -57,13 +55,7 @@ export function view(): IPageHandler {
5755 } ;
5856 editor . dataManager . setSceneDataByFrames ( [ data ] ) ;
5957 }
60- function onAction ( action : FlowAction ) {
61- switch ( action ) {
62- case FlowAction . close :
63- onClose ( ) ;
64- break ;
65- }
66- }
58+ function onAction ( ) { }
6759
6860 return { init, onAction } ;
6961}
You can’t perform that action at this time.
0 commit comments