Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0b38165

Browse files
committed
Fix: terminal fontsize bug
1 parent 1245262 commit 0b38165

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/views/Terminal/TermSetting.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ export default {
217217
methods: {
218218
init() {
219219
this.options = this.config;
220-
this.options.fontSize = localStorage.getItem("terminalFontSize");
221-
this.options.fontFamily = localStorage.getItem("terminalFontFamily");
220+
this.options.fontSize = parseInt(localStorage.getItem("terminalFontSize") || 12);
222221
},
223222
show() {
224223
this.$emit("update:visible", true);
@@ -246,7 +245,6 @@ export default {
246245
}
247246
});
248247
localStorage.setItem("terminalFontSize", this.options.fontSize);
249-
localStorage.setItem("terminalFontFamily", this.options.fontFamily);
250248
this.options = {};
251249
this.close();
252250
this.$message({

0 commit comments

Comments
 (0)