Feat: use history router mode

This commit is contained in:
HFO4
2020-12-08 17:36:19 +08:00
parent 5b44606276
commit 5d406f1c6a
6 changed files with 74 additions and 9 deletions

View File

@@ -139,7 +139,7 @@ func (service *ShareCreateService) Create(c *gin.Context) serializer.Response {
uid := hashid.HashID(id, hashid.ShareID)
// 最终得到分享链接
siteURL := model.GetSiteURL()
sharePath, _ := url.Parse("/#/s/" + uid)
sharePath, _ := url.Parse("/s/" + uid)
shareURL := siteURL.ResolveReference(sharePath)
return serializer.Response{