Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another-web
Commits
7cfc1f95
Commit
7cfc1f95
authored
Jun 09, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6bcc929a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
src/pages/main.vue
src/pages/main.vue
+6
-2
src/pages/tabulator.vue
src/pages/tabulator.vue
+5
-7
No files found.
src/pages/main.vue
View file @
7cfc1f95
...
...
@@ -22,20 +22,24 @@
window
.
location
.
replace
(
url
);
}
const
show
=
async
()
:
Promise
<
void
>
=>
{
const
show
=
async
(
chk
:
boolean
|
undefined
=
undefined
)
:
Promise
<
void
>
=>
{
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
loading
.
value
=
!
loading
.
value
;
if
(
typeof
chk
===
'
undefined
'
)
loading
.
value
=
!
loading
.
value
;
else
loading
.
value
=
chk
;
}
onBeforeMount
(()
:
void
=>
{
// @ts-ignore
emitter
.
on
(
Const
.
changeUrl
,
changeUrl
);
// @ts-ignore
emitter
.
on
(
Const
.
show
,
show
);
})
onUnmounted
(()
:
void
=>
{
// @ts-ignore
emitter
.
off
(
Const
.
changeUrl
,
changeUrl
);
// @ts-ignore
emitter
.
off
(
Const
.
show
,
show
);
});
</
script
>
...
...
src/pages/tabulator.vue
View file @
7cfc1f95
...
...
@@ -411,12 +411,10 @@
const
loading
=
async
()
:
Promise
<
void
>
=>
{
const
url
=
window
.
location
.
hash
.
match
(
/#
\/(
.*
?)(?:\?
|$
)
/
);
if
(
url
)
{
if
(
!
isNaN
(
parseInt
(
url
[
1
])))
{
page
.
menu
=
false
;
page
.
tournament
=
true
;
emitter
.
emit
(
Const
.
showTournament
);
return
;
}
else
if
(
url
[
1
].
length
==
0
)
{
if
(
window
.
location
.
href
.
includes
(
'
/?
'
)
&&
window
.
location
.
hash
.
endsWith
(
'
#/
'
))
{
const
i
=
window
.
location
.
href
.
split
(
'
/?
'
);
...
...
@@ -427,15 +425,16 @@
page
.
menu
=
true
;
search
.
mine
();
await
search
.
on
();
emitter
.
emit
(
Const
.
show
);
return
;
emitter
.
emit
(
Const
.
show
,
false
);
}
}
else
{
const
i
=
window
.
location
.
href
.
split
(
'
/?
'
);
emitter
.
emit
(
Const
.
changeUrl
,
`
${
window
.
location
.
origin
}
/#
${
i
[
1
]
?
`/?
${
i
[
1
]}
`
:
'
/
'
}
`
);
}
const
i
=
window
.
location
.
href
.
split
(
'
/?
'
);
emitter
.
emit
(
Const
.
changeUrl
,
`
${
window
.
location
.
origin
}
/#
${
i
[
1
]
?
`/?
${
i
[
1
]}
`
:
'
/
'
}
`
);
};
onBeforeMount
(()
:
void
=>
{
loading
();
Uniapp
.
chkScreen
(
size
.
get
);
document
.
addEventListener
(
"
click
"
,
page
.
show
.
clear
);
emitter
.
on
(
Const
.
tournamentInfo
,
page
.
show
.
drawer
);
...
...
@@ -443,7 +442,6 @@
emitter
.
on
(
Const
.
tournamentReload
,
tournament
.
init
);
emitter
.
on
(
Const
.
createOff
,
creator
.
off
);
window
.
addEventListener
(
'
hashchange
'
,
loading
);
loading
();
});
onMounted
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment