Skip to content

Commit d1a3e0c

Browse files
authored
Merge pull request #566 from hsxyhao/fix-loadCustomConfig
fix switch theme custom config bug.
2 parents 21fa66e + 3a3d898 commit d1a3e0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/theme/includes/CustomSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default class ThemeCustomSetting extends Vue {
260260
this.$set(this.form, key, this.site.themeCustomConfig[key])
261261
})
262262
this.currentThemeConfig.forEach((item: any) => {
263-
if (!this.form[item.name]) {
263+
if (this.form[item.name] === undefined) {
264264
this.$set(this.form, item.name, item.value)
265265
}
266266
})

0 commit comments

Comments
 (0)