By Malena T


2020-05-22 21:52:29 8 Comments

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?

Related Questions

Sponsored Content

1 Answered Questions

3 Answered Questions

[SOLVED] How to enable dark mode with custom colors in light theme in vuetify?

1 Answered Questions

1 Answered Questions

[SOLVED] Errors when upgrading vuetify from 1.5 to 2.1

1 Answered Questions

[SOLVED] Fresh project fail to compile after installing vuetify in vue.js

  • 2019-11-23 08:39:07
  • t.khatibi
  • 586 View
  • 2 Score
  • 1 Answer
  • Tags:   vue.js vuetify.js

2 Answered Questions

1 Answered Questions

[SOLVED] Function slows down after upgrading npm packages

1 Answered Questions

How to use [email protected]

Sponsored Content