feat(plugin): support local plugin sources

This commit is contained in:
InfinityPacer
2026-04-18 03:01:16 +08:00
parent 46fe257585
commit 1120055eed
2 changed files with 18 additions and 8 deletions

View File

@@ -118,6 +118,9 @@ const iconPath: Ref<string> = computed(() => {
function visitPluginPage() {
// 将raw.githubusercontent.com转换为项目地址
let repoUrl = props.plugin?.repo_url
if (repoUrl?.startsWith('local://')) {
repoUrl = props.plugin?.author_url
}
if (repoUrl) {
if (repoUrl.includes('raw.githubusercontent.com')) {
if (!repoUrl.endsWith('/')) repoUrl += '/'