We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f6a16 commit 9898dc0Copy full SHA for 9898dc0
packages/@vue/cli-ui/src/components/ItemLogo.vue
@@ -14,10 +14,10 @@
14
icon="done"
15
/>
16
<img
17
- v-else-if="image && !error"
+ v-else-if="imageEnabled && !error"
18
class="image"
19
- :src="image"
20
- :key="image"
+ :src="imageUrl"
+ :key="imageUrl"
21
@load="loaded = true"
22
@error="error = true"
23
>
@@ -65,6 +65,16 @@ export default {
65
}
66
},
67
68
+ computed: {
69
+ imageEnabled () {
70
+ return this.image || (this.icon && this.icon.indexOf('.') !== -1)
71
+ },
72
+
73
+ imageUrl () {
74
+ return this.image || this.icon
75
+ }
76
77
78
watch: {
79
image: 'reset',
80
selected: 'reset'
0 commit comments