修改一言访问路径
This commit is contained in:
parent
8b1e6645ee
commit
9c85d05c50
@ -209,7 +209,7 @@ const waifuTools = {
|
||||
},
|
||||
"tools.chart"() {
|
||||
// 一言
|
||||
axios.get('https://www.colorfulsweet.site/api/hitokoto?length=40&format=json').then(res => {
|
||||
axios.get(`${window.themeConfig.root}api/hitokoto?length=40&format=json`).then(res => {
|
||||
this.showMessage(res.data.hitokoto + (res.data.from?` ——${res.data.from}`:''))
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user