Vuetify theme doesn't change

梦想与她 提交于 2019-12-11 06:39:02

问题


As doc said i used this to change default theme of my project:

Vue.use(Vuetify, {
 theme: {
 primary: '#ff0000',
 secondary: '#ff0000',
 accent: '#ff0000',
 error: '#ff0000'
}
})

But nothing happens. Default primary color(#1976D2) is still there with no change. Why it is not working?


回答1:


Editing theme with Vue.use is not supported in older versions of Vuetify.
Upgrading Vuetify to 0.17.0 or higher will solve your problem.



来源:https://stackoverflow.com/questions/48618078/vuetify-theme-doesnt-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!