add webclientv2

This commit is contained in:
lejianwen
2024-11-16 18:33:02 +08:00
parent 78869a4a57
commit 22e470fee5
4 changed files with 24 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ func (i *Index) ConfigJs(c *gin.Context) {
tmp := `
localStorage.setItem('api-server', "` + apiServer + `")
const ws2_prefix = 'wc-'
localStorage.setItem(ws2_prefix+'api-server', "` + apiServer + `")
`
c.String(200, tmp)
}