fix: the problem that changing the theme color does not work because of cache reasons 🌟

修复: 缓存原因导致主题色更换不生效的问题;
master
iczer 4 years ago
parent 8034f474d6
commit 42a34f7a16
  1. 3
      src/utils/themeUtil.js

@ -18,9 +18,6 @@ module.exports = {
changeThemeColor (newColor) {
let lastColor = this.lastColor || this.primaryColor
let options = {
changeUrl (cssUrl) {
return `/${cssUrl}` // while router is not `hash` mode, it needs absolute path
},
oldColors: this.getThemeColors(lastColor),
newColors: this.getThemeColors(newColor)
}

Loading…
Cancel
Save