mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-26 05:05:23 +00:00
removed vuex state compiler warn
This commit is contained in:
parent
06d4c96c01
commit
2614d66c60
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ const getDefaultState = () => {
|
||||||
videos: null,
|
videos: null,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
export const state = getDefaultState();
|
export const state = () => {
|
||||||
|
return getDefaultState();
|
||||||
|
};
|
||||||
export const actions = {
|
export const actions = {
|
||||||
fetchChannel({ state }, channelUrl) {
|
fetchChannel({ state }, channelUrl) {
|
||||||
Object.assign(state, getDefaultState());
|
Object.assign(state, getDefaultState());
|
||||||
|
|
Loading…
Reference in a new issue