Skip to content

Commit 3a3d898

Browse files
committed
fix switch theme custom config bug.
1 parent 1d34aef commit 3a3d898

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)