mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix: 修复插件项目主页跳转被拦截
This commit is contained in:
@@ -260,6 +260,7 @@ async function updatePlugin() {
|
|||||||
|
|
||||||
// 访问插件项目主页
|
// 访问插件项目主页
|
||||||
async function visitPluginPage() {
|
async function visitPluginPage() {
|
||||||
|
const popup = window.open('', '_blank', 'noopener,noreferrer')
|
||||||
let pluginDetail = props.plugin
|
let pluginDetail = props.plugin
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -294,8 +295,16 @@ async function visitPluginPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (repoUrl) {
|
if (repoUrl) {
|
||||||
|
if (popup) {
|
||||||
|
popup.location.href = repoUrl
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
window.open(repoUrl, '_blank')
|
window.open(repoUrl, '_blank')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
popup?.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打开插件详情
|
// 打开插件详情
|
||||||
|
|||||||
Reference in New Issue
Block a user