🔒 🔧 Fixes #142 Optimize CDN service code

This commit is contained in:
elkan1788
2024-07-20 21:36:08 +08:00
parent 4e05bfb399
commit c5c1f03557
9 changed files with 102 additions and 43 deletions

View File

@@ -8,7 +8,7 @@
{{ end }}
{{ $file := .res.file }}
{{ if ne .vendor "unpkg" }}
{{ if ne .router.type "nodejs" }}
{{ with .res.alias }}
{{ $npm = . }}
{{ end }}
@@ -16,6 +16,6 @@
{{ $fmt = "%s/%s/%s/%s" }}
{{ end }}
{{ $pluginRes := printf $fmt .router $npm .res.version $file }}
{{ $pluginRes := printf $fmt .router.url $npm .res.version $file }}
{{ return $pluginRes }}