修改一言访问路径

This commit is contained in:
结发受长生 2019-06-06 10:36:50 +08:00
parent 8b1e6645ee
commit 9c85d05c50

View File

@ -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}`:''))
})
}