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