mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
refactor: optimize component lifecycle and build process
- React: Removed unnecessary dependencies from useEffect in Artplayer component. - Vue: Simplified instance emission in Artplayer component by removing nextTick. - Build script: Added cpy to copy built i18n files to a new directory and set context to browser for Parcel.
This commit is contained in:
1 parent
0eed9c114b
commit
5cc6724f54
17 files changed
+25
-19
No files matched your search
@@ -31,7 +31,7 @@ export default function Player({ option, getInstance, ...rest }) {
|
||||
}
|
||||
|
||||
return () => art.destroy(false)
|
||||
}, [option, getInstance])
|
||||
}, [])
|
||||
|
||||
return <div ref={$container} {...rest}></div>
|
||||
}
|
||||
Reference in new issue
Block a user