UI fix Theme text color not bind navTextColorPick and reset button (#6721)

UI fix Theme text color not bind navTextColorPick fix #6720
This commit is contained in:
hooklee2000 2022-09-14 15:26:58 +08:00 committed by GitHub
parent fa34d68766
commit c3d6f42dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@
<a-input
:disabled="layoutMode === 'dark'"
type="color"
v-model:value="navBgColorPick"
v-model:value="navTextColorPick"
@blur="(e) => updateSetting('@navigation-text-color', e.target.value)" />
</div>
</div>
@ -254,6 +254,7 @@ export default {
this.downloadObjectAsJson(this.uiSettings)
},
resetSetting () {
this.uiSettings = {}
this.layoutMode = 'light'
this.colorPick = this.originalSetting['@primary-color']
this.navBgColorPick = this.originalSetting['@navigation-background-color']