mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-01 17:32:39 +00:00
25 lines
495 B
JavaScript
25 lines
495 B
JavaScript
export const state = () => ({
|
|
loop: null,
|
|
speed: null,
|
|
preload: null,
|
|
quality: null,
|
|
// qualityAutoSwitch: null,
|
|
// shortFullscreen: null,
|
|
// autoplay: null,
|
|
// shorts: null,
|
|
// music: null,
|
|
});
|
|
export const mutations = {
|
|
setLoop(state, payload) {
|
|
state.loop = payload;
|
|
},
|
|
setSpeed(state, payload) {
|
|
state.loading = payload;
|
|
},
|
|
setPreload(state, payload) {
|
|
state.preload = payload;
|
|
},
|
|
setQuality(state, payload) {
|
|
state.quality = payload;
|
|
},
|
|
};
|