Skip to content

Commit

Permalink
font family fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qishibo committed Jul 5, 2019
1 parent 0df92a2 commit 765d388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default {
},
initFont() {
const fontFamily = this.$storage.getSetting('fontFamily');
fontFamily && (this.fontFamily = fontFamily.join(','));
this.fontFamily = fontFamily.map((line) => {return `"${line}"`}).join(',');
}
},
mounted() {
Expand Down
1 change: 1 addition & 0 deletions src/components/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default {
return line.family;
});

fonts.sort();
fonts.unshift('Default Initial');

this.allFonts = [...new Set(fonts)];
Expand Down

0 comments on commit 765d388

Please sign in to comment.