Merge pull request #461 from InfinityPacer/codex/feat/local-plugin-paths

This commit is contained in:
jxxghp
2026-04-19 07:07:55 +08:00
committed by GitHub
6 changed files with 55 additions and 13 deletions

View File

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