Skip to content

Commit

Permalink
feat: 改成http请求
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoZeyuan authored Oct 21, 2024
1 parent 5ed13aa commit 0a4abaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ export default class Base extends Component {
releaseNote: '稳部落1.1.0, 闪亮发布.',
version: 1.1,
detail: {
windows: { version: 1.1, url: 'http://stablog.bookflaneur.cn/%E7%A8%B3%E9%83%A8%E8%90%BD%20Setup%201.1.0.exe' },
mac: { version: 1.1, url: 'http://stablog.bookflaneur.cn/%E7%A8%B3%E9%83%A8%E8%90%BD-1.1.0.dmg' },
windows: { version: 1.1, url: 'https://github.com/YaoZeyuan/stablog/tags' },
mac: { version: 1.1, url: 'https://github.com/YaoZeyuan/stablog/tags' },
},
},
thankList: [{ reason: '*明明捐助了25元', time: '2019-10-14 21:34' }],
}

async componentDidMount() {
let versionResponse = await axios.get('https://api.yaozeyuan.online/stablog/version')
let thankListResponse = await axios.get('https://api.yaozeyuan.online/stablog/thank_you/list')
let versionResponse = await axios.get('http://api.yaozeyuan.online/stablog/version')
let thankListResponse = await axios.get('http://api.yaozeyuan.online/stablog/thank_you/list')
let config = versionResponse.data
let thankList = thankListResponse.data
this.setState({
Expand Down

0 comments on commit 0a4abaa

Please sign in to comment.