mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 12:16:24 +08:00
fix(ci):Fixed webversion (#333)
* Revert "fix(ci):fixed webversion (#332)"
This reverts commit 9e69b2aaa3
.
* Fixed webversion
Signed-off-by: Suyunjing <69945917+Suyunmeng@users.noreply.github.com>
---------
Signed-off-by: Suyunjing <69945917+Suyunmeng@users.noreply.github.com>
This commit is contained in:
@ -15,7 +15,7 @@ type SiteConfig struct {
|
||||
func getSiteConfig() SiteConfig {
|
||||
siteConfig := SiteConfig{
|
||||
BasePath: conf.URL.Path,
|
||||
Cdn: strings.ReplaceAll(strings.TrimSuffix(conf.Conf.Cdn, "/"), "$version", conf.WebVersion),
|
||||
Cdn: strings.ReplaceAll(strings.TrimSuffix(conf.Conf.Cdn, "/"), "$version", strings.TrimPrefix(conf.WebVersion, "v"),),
|
||||
}
|
||||
if siteConfig.BasePath != "" {
|
||||
siteConfig.BasePath = utils.FixAndCleanPath(siteConfig.BasePath)
|
||||
|
Reference in New Issue
Block a user