Vuetify 主题没有改变 [英] Vuetify theme doesn't change
本文介绍了Vuetify 主题没有改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正如 doc 所说,我用它来更改我项目的默认主题:
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'
}
})
但是什么也没发生.默认原色(#1976D2) 仍然存在,没有变化.为什么它不起作用?
But nothing happens. Default primary color(#1976D2) is still there with no change. Why it is not working?
推荐答案
旧版本的 Vuetify 不支持使用 Vue.use
编辑主题.
将 Vuetify 升级到 0.17.0 或更高版本将解决您的问题.
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.
这篇关于Vuetify 主题没有改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文