I have recently upgraded my vuetify version to 2.0. According to new documentation about theme, we need to set dark
in vuetify.js
. I set the value of dark
in vuex and when I update the variable, vuetify.js
does not get the updated value.
import Vue from 'vue';
import Vuetify from 'vuetify/lib';
import 'vuetify/dist/vuetify.min.css';
import 'material-design-icons-iconfont/dist/material-design-icons.css';
import store from '../store';
const { getters } = store;
Vue.use(Vuetify);
export default new Vuetify({
icons: {
iconfont: 'md'
},
theme: {
dark: getters.isDark
}
});
How can I get the updated value of dark
from vuex?