mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 11:15:14 +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,
|
||||
};
|
||||
};
|
||||
export const state = getDefaultState();
|
||||
export const state = () => {
|
||||
return getDefaultState();
|
||||
};
|
||||
export const actions = {
|
||||
fetchChannel({ state }, channelUrl) {
|
||||
Object.assign(state, getDefaultState());
|
||||
|
|
Loading…
Reference in a new issue