升级axios

This commit is contained in:
2026-03-21 14:47:37 +08:00
parent 26097d5710
commit 4578670432
3 changed files with 337 additions and 41 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ const waifuTools = {
},
'tools.chart'() {
// 一言
http.get('/api/v2/common/hitokoto?length=40&format=json').then(res => {
http.get('/api/v2/common/hitokoto', { params: {format: 'json'} }).then(res => {
this.showMessage(res.hitokoto + (res.from?`  ——${res.from}`:''))
})
},