Skip to content

Commit 8deb741

Browse files
committed
更新[BoxJs TF]: 修复主屏左滑时与侧栏冲突问题
1 parent e448a7d commit 8deb741

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

box/chavy.boxjs.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
</v-card>
163163
</v-dialog>
164164
<!-- 侧栏 -->
165-
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right>
165+
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right disable-route-watcher>
166166
<v-list dense nav>
167167
<v-list-item dense @click="open(box.syscfgs.chavy.repo)">
168168
<v-list-item-avatar><img :src="box.syscfgs.chavy.icon" /></v-list-item-avatar>
@@ -1887,15 +1887,13 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
18871887
},
18881888
setWallpaper() {
18891889
let bgimg = ''
1890-
if (this.box.usercfgs.bgimg === "跟随系统") {
1891-
const hasdark = this.bgimgs.find(bgimg => bgimg.name == "dark")
1892-
const haslight = this.bgimgs.find(bgimg => bgimg.name == "light")
1890+
if (this.box.usercfgs.bgimg === '跟随系统') {
1891+
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == 'dark')
1892+
const haslight = this.bgimgs.find((bgimg) => bgimg.name == 'light')
18931893
const darkbgimg = hasdark ? hasdark.url : ``
18941894
const lightbgimg = haslight ? haslight.url : ``
1895-
this.isDarkMode ? bgimg = darkbgimg : bgimg = lightbgimg
1896-
const bgStyle = [
1897-
`background-image: linear-gradient(to bottom,rgba(0,0,0,.2) 0,transparent 76px), url(${bgimg})`
1898-
]
1895+
this.isDarkMode ? (bgimg = darkbgimg) : (bgimg = lightbgimg)
1896+
const bgStyle = [`background-image: linear-gradient(to bottom,rgba(0,0,0,.2) 0,transparent 76px), url(${bgimg})`]
18991897
document.querySelector('#BG').setAttribute('style', bgStyle.join('; '))
19001898
} else {
19011899
const bgStyle = [

box/chavy.boxjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
33
// 为 eval 准备的上下文环境
44
const $eval_env = {}
55

6-
$.version = '0.7.48'
6+
$.version = '0.7.49'
77
$.versionType = 'beta'
88

99
/**

box/release/box.release.tf.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"releases": [
33
{
4-
"version": "0.7.48",
4+
"version": "0.7.49",
55
"tags": ["beta"],
66
"author": "@GideonSenku",
77
"icon": "https://avatars3.githubusercontent.com/u/29748519",
88
"repo": "https://github.com/chavyleung",
9-
"msg": "更新[BoxJs TF]: 新增壁纸跟随系统适配",
9+
"msg": "更新[BoxJs TF]: 修复主屏左滑时与侧栏冲突问题",
1010
"notes": [
1111
{
1212
"name": "新增",
@@ -16,10 +16,13 @@
1616
"name": "调整",
1717
"descs": ["背景清单图片默认`无`更改为`跟随系统`"]
1818
},
19+
{
20+
"name": "修复",
21+
"descs": ["主屏左滑时与侧栏冲突问题"]
22+
},
1923
{
2024
"name": "说明",
21-
"descs": ["背景图片清单中设置:跟随系统,跟随系统{换行} light,图片地址{换行} dark,图片地址{换行}",
22-
"如果不设置`跟随系统,跟随系统`,则默认跟随系统为无背景"]
25+
"descs": ["背景图片清单中设置:无{换行} 跟随系统,跟随系统{换行} light,图片地址{换行} dark,图片地址{换行}", "如果不设置`跟随系统,跟随系统`,则默认跟随系统为无背景"]
2326
}
2427
]
2528
},

0 commit comments

Comments
 (0)