选项改为常量

This commit is contained in:
CNH5 2025-06-04 20:07:48 +08:00
parent e448b5655a
commit e8d04ec788

View File

@ -39,7 +39,8 @@ export const entry = async () => {
})
;['volume', 'brightness'].forEach(type => {
swiper.action.addEventListener(type, (e: CustomEvent<number>) => {
if (getComponentSettings('touchPlayerGestures').options[`${type}Control`]) {
const { options } = getComponentSettings('touchPlayerGestures').options
if (options[`${type}Control`]) {
gestureVM.startPreview({
[type]: e.detail,
})