Skip to content

Commit 18d8781

Browse files
committed
更新[BoxJs]: 修复一处可能导致白屏的问题
1 parent 63d85b7 commit 18d8781

2 files changed

Lines changed: 14 additions & 1 deletion

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.6.14",
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": ["可能导致白屏的问题"]
13+
}
14+
]
15+
},
316
{
417
"version": "0.6.13",
518
"tags": ["beta"],

‎chavy.box.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ function printHtml(data, curapp = null, curview = 'app') {
16111611
newVersion: function () {
16121612
const curver = this.box.syscfgs.version
16131613
const vers = this.box.versions
1614-
if (curver && Array.isArray(vers)) {
1614+
if (curver && vers && vers.length > 0) {
16151615
const lastestVer = vers[0].version
16161616
return this.compareVersion(lastestVer, curver) > 0
16171617
}

0 commit comments

Comments
 (0)