chore: replace $version of cdn with webVersion

This commit is contained in:
Noah Hsu 2022-09-07 18:39:04 +08:00
parent 71d30b6819
commit 4ea19ae078

View File

@ -26,6 +26,7 @@ func InitIndex() {
func UpdateIndex() {
cdn := strings.TrimSuffix(conf.Conf.Cdn, "/")
cdn = strings.ReplaceAll(cdn, "$version", conf.WebVersion)
basePath := setting.GetStr(conf.BasePath)
apiUrl := setting.GetStr(conf.ApiUrl)
favicon := setting.GetStr(conf.Favicon)