Skip to content

Commit b0b3e8f

Browse files
committed
更新[BoxJs]: 修复 v0.4.18 白屏问题
1 parent 23706bb commit b0b3e8f

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

‎box/release/box.release.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.4.19",
5+
"tags": ["beta"],
6+
"author": "@chavyleung",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"notes": [
10+
{
11+
"name": "修复",
12+
"descs": ["v0.4.18 白屏问题 (百果园空图标导致)"]
13+
}
14+
]
15+
},
316
{
417
"version": "0.4.18",
518
"tags": ["beta"],

‎chavy.box.js‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const $ = new Env('BoxJs')
22
$.domain = '8.8.8.8'
33

4-
$.version = '0.4.18'
4+
$.version = '0.4.19'
55
$.versionType = 'beta'
66
$.KEY_sessions = 'chavy_boxjs_sessions'
77
$.KEY_versions = 'chavy_boxjs_versions'
@@ -737,7 +737,8 @@ function printHtml(data, curapp = null, curview = 'app') {
737737
<template v-slot:item="{ item }">
738738
<v-list-item @click="goAppSessionView(item)">
739739
<v-list-item-avatar>
740-
<img :src="item.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
740+
<img v-if="item.icons" :src="item.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
741+
<img v-else :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]">
741742
</v-list-item-avatar>
742743
<v-list-item-content>
743744
<v-list-item-title>{{ item.name }} ({{ item.id }})</v-list-item-title>
@@ -893,7 +894,8 @@ function printHtml(data, curapp = null, curview = 'app') {
893894
<v-expansion-panel-content>
894895
<v-list nav dense class="mx-n4">
895896
<v-list-item three-line dense v-for="(app, appIdx) in favapps" :key="app.id" @click="goAppSessionView(app)">
896-
<v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
897+
<v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
898+
<v-list-item-avatar v-else><v-img :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
897899
<v-list-item-content>
898900
<v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
899901
<v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -931,7 +933,8 @@ function printHtml(data, curapp = null, curview = 'app') {
931933
<v-expansion-panel-content>
932934
<v-list nav dense class="mx-n4">
933935
<v-list-item three-line dense v-for="(app, appIdx) in sub.apps" :key="app.id" @click="goAppSessionView(app)">
934-
<v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
936+
<v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
937+
<v-list-item-avatar v-else><v-img :src="ui.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
935938
<v-list-item-content>
936939
<v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
937940
<v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -957,7 +960,8 @@ function printHtml(data, curapp = null, curview = 'app') {
957960
<v-expansion-panel-content>
958961
<v-list nav dense class="mx-n4">
959962
<v-list-item three-line dense v-for="(app, appIdx) in box.sysapps" :key="app.id" @click="goAppSessionView(app)">
960-
<v-list-item-avatar><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
963+
<v-list-item-avatar v-if="app.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
964+
<v-list-item-avatar v-else="ui.icons"><v-img :src="app.icons[box.usercfgs.isTransparentIcons ? 0 : 1]"></v-img></v-list-item-avatar>
961965
<v-list-item-content>
962966
<v-list-item-title>{{ app.name }} ({{ app.id }})</v-list-item-title>
963967
<v-list-item-subtitle>{{ app.repo }}</v-list-item-subtitle>
@@ -1471,7 +1475,8 @@ function printHtml(data, curapp = null, curview = 'app') {
14711475
appbar: { color: '' },
14721476
box: { show: false },
14731477
navi: { show: false },
1474-
drawer: { show: false }
1478+
drawer: { show: false },
1479+
icons: ['https://raw.githubusercontent.com/Orz-3/mini/master/appstore.png', 'https://raw.githubusercontent.com/Orz-3/task/master/appstore.png']
14751480
},
14761481
box: ${data}
14771482
}

0 commit comments

Comments
 (0)