import { Row } from '@/models/data/row' ; import { useStore } from '@/store' ; export default ( ) => { const store = useStore ( ) ; function pushSucceessBar ( row ) { if ( Array . isArray ( row ) ) { store . successBarList . push ( ... row ) ; } else { store . successBarList . push ( row ) ; } setTimeout ( ( ) => { store . successBarList . length = 0 ; } , store . successBarTimeout ) ; } return { successBarTimeout : store . successBarTimeout , successBarList : store . successBarList , pushSucceessBar } ; } ;