Skip to content

Commit 10c0ffc

Browse files
committed
更新[BoxJs Tf]: 优化 支持前进&后退、 WebApp 状态下刷新能留在当前页面
1 parent 59dc61d commit 10c0ffc

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
16711671
// 根据路径跳转视图
16721672
const defview = '/'
16731673
if (!this.isCors) {
1674-
const path = location.pathname
1674+
let path = location.pathname + location.hash
16751675
this.path = path === '/' ? defview : path
16761676
} else {
16771677
this.path = defview
@@ -1697,9 +1697,6 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
16971697
this.ui.scrollY[this.path] = event.currentTarget.scrollY
16981698
},
16991699
handleHistory(path) {
1700-
// if (this.isWebApp == true) {
1701-
// return
1702-
// }
17031700
const state = { title: 'BoxJs', url: path }
17041701
if (!history.state) {
17051702
history.replaceState(state, '')

‎box/chavy.boxjs.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const $ = new Env('BoxJs')
22

3-
$.version = '0.7.32'
3+
$.version = '0.7.33'
44
$.versionType = 'beta'
55

66
/**

‎box/release/box.release.tf.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"releases": [
33
{
4-
"version": "0.7.32",
4+
"version": "0.7.33",
55
"tags": ["beta"],
66
"author": "@chavyleung",
77
"icon": "https://avatars3.githubusercontent.com/u/29748519",
88
"repo": "https://github.com/chavyleung",
99
"notes": [
10+
{
11+
"name": "优化",
12+
"descs": ["支持前进、后退", "WebApp 状态下刷新能留在当前页面"]
13+
},
1014
{
1115
"name": "修复",
1216
"descs": ["侧栏拉不到底缺陷"]

0 commit comments

Comments
 (0)