|
@@ -23,7 +23,7 @@
|
|
|
<div class="app-list">
|
|
|
<div class="app" v-for="(app, idx) in historyList" :key="idx"
|
|
|
@click="clickHistoryAppHandler(app)">
|
|
|
- <img :src="app.iconPath" alt="">
|
|
|
+ <img :src="app.iconPath" alt="" :onerror="imgOnError">
|
|
|
<div class="name">
|
|
|
{{ app.name }}
|
|
|
</div>
|
|
@@ -212,6 +212,12 @@ const getHistoryList = async () => {
|
|
|
historyList.value = list;
|
|
|
};
|
|
|
|
|
|
+const imgOnError = (e) => {
|
|
|
+ let img = e.srcElement;
|
|
|
+ img.src = require('@/assets/img/icon-default-app-logo.png');
|
|
|
+ img.onerror = null;
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
getHistoryList();
|
|
|
getAppList();
|
|
@@ -335,6 +341,8 @@ onMounted(() => {
|
|
|
height: 60px;
|
|
|
border-radius: 10px;
|
|
|
margin-bottom: 10px;
|
|
|
+ border: 1px solid #E5E5E5;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.name {
|