|
@@ -34,7 +34,9 @@ const colorList = [
|
|
const updateTheme = newPrimaryColor => {
|
|
const updateTheme = newPrimaryColor => {
|
|
const hideMessage = message.loading('正在切换主题!', 0)
|
|
const hideMessage = message.loading('正在切换主题!', 0)
|
|
themeColor.changeColor(newPrimaryColor).finally(t => {
|
|
themeColor.changeColor(newPrimaryColor).finally(t => {
|
|
- hideMessage()
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ hideMessage()
|
|
|
|
+ })
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|