fix: merge dev branch

This commit is contained in:
starknt
2024-01-26 14:52:54 +08:00
parent c40fe57be0
commit 767e8a7aa6

View File

@@ -237,27 +237,19 @@ function handleOsScroll() {
topBarRef.value?.handleScroll()
}
provide<BewlyAppProvider>('BEWLY_APP', {
activatedPage,
mainAppRef,
scrollbarRef,
handleBackToTop,
handlePageRefresh,
handleReachBottom,
})
// fix #166 https://github.com/hakadao/BewlyBewly/issues/166
function openVideoPageIfBvidExists() {
// Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out
// function openVideoPageIfBvidExists() {
// Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out
// // Get the current URL's query string
// const queryString = window.location.search
// // Create a URLSearchParams instance
// const urlParams = new URLSearchParams(queryString)
// const bvid = urlParams.get('bvid')
// // Get the current URL's query string
// const queryString = window.location.search
// // Create a URLSearchParams instance
// const urlParams = new URLSearchParams(queryString)
// const bvid = urlParams.get('bvid')
if (bvid)
window.open(`https://www.bilibili.com/video/${bvid}`, '_self')
}
// if (bvid)
// window.open(`https://www.bilibili.com/video/${bvid}`, '_self')
// }
provide<BewlyAppProvider>('BEWLY_APP', {
activatedPage,