Skip to content

Commit 42b9a91

Browse files
committed
🐛 修复编辑页菜单栏样式错误
1 parent 5bdcbf9 commit 42b9a91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/views/pages/Option/tabs/ScriptTab/Editor.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
}"
4747
style="width: 300px"
4848
>
49-
n>{{ item.action }} </span>
50-
<span v-f"tmky"{ tem.keys }}</span>
49+
<span>{{ item.action }} </span>
50+
<span v-if="item.keys">{{ item.keys }}</span>
5151
</v-list-item-title>
5252
</div>
5353
</v-list-item>
@@ -64,7 +64,7 @@
6464

6565
<script lang="ts">
6666
import { Component, Prop, Vue, Watch } from 'vue-property-decorator';
67-
import { KeyMod, KeyCode, languages } from 'monaco-editor';
67+
import { KeyMod, KeyCode } from 'monaco-editor';
6868
import { Script, SCRIPT_TYPE_NORMAL } from '@App/model/do/script';
6969
import { mdiContentSave, mdiFileImport, mdiFileExport, mdiBug } from '@mdi/js';
7070
import ResizableEditor from '@Components/ResizableEditor.vue';
@@ -122,7 +122,7 @@ export default class CloseButton extends Vue {
122122
var file = fileInput!.files![0];
123123
var reader = new FileReader();
124124
let _this = this;
125-
reader.onload = function() {
125+
reader.onload = function () {
126126
_this.editor.setValue(<string>this.result);
127127
};
128128
reader.readAsText(file, 'utf-8');

0 commit comments

Comments
 (0)