chore: optimize the realization of theme color 🌟

This commit is contained in:
iczer
2020-07-01 17:30:20 +08:00
parent 5f68e2d231
commit 397f4b4ab8
3 changed files with 26 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ export default {
methods: {
onColorChange (values, colors) {
if (colors.length > 0) {
let closeMessage = this.$message.info(`您选择了主题色 ${colors}, 正在切换...`)
let closeMessage = this.$message.loading(`您选择了主题色 ${colors}, 正在切换...`)
let _this = this
themeUtil.changeThemeColor(colors[0]).then(() => {
_this.setThemeColor(colors[0])