图标移至src

This commit is contained in:
fofolee
2022-04-15 18:54:21 +08:00
parent 4e879e6dc2
commit e4e7d77808
25 changed files with 22 additions and 14 deletions

View File

@@ -59,13 +59,13 @@
>
<template v-slot:append>
<q-avatar size="lg" square>
<img :src="getLanguageIcon(quickcommandInfo.program)" />
<img :src="$programmings[quickcommandInfo.program].icon" />
</q-avatar>
</template>
<template v-slot:option="scope">
<q-item v-bind="scope.itemProps">
<q-item-section avatar>
<img width="32" :src="getLanguageIcon(scope.opt)" />
<img width="32" :src="$programmings[scope.opt].icon" />
</q-item-section>
<q-item-section>
<q-item-label v-html="scope.opt" />
@@ -243,9 +243,6 @@ export default {
let highlight = this.$programmings[language].highlight;
this.$refs.editor.setEditorLanguage(highlight ? highlight : language);
},
getLanguageIcon(program) {
return `img/logo/${program}.png`;
},
// 打开文档
showHelp() {
utools.createBrowserWindow("./helps/quickcommand.html", {