This commit is contained in:
2023-03-08 20:28:46 +08:00
parent cc6a22aa60
commit 017d6afd95
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -28,7 +28,9 @@ func Index(c *gin.Context) {
filePath := path
uri := filePath[:len(filePath)-len(filepath.Ext(filePath))]
uri = strings.Replace(uri, "article\\", "", -1)
uri = strings.Replace(uri, "article/", "", -1)
uri = strings.Replace(uri, "\\", "-", -1)
uri = strings.Replace(uri, "/", "-", -1)
list = append(list, uri)
return nil