Skip to content

Commit

Permalink
feat: 更新接口地址
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoZeyuan authored Oct 21, 2024
1 parent fcd50c5 commit 6fde7ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ export default class Base extends Component {
}

async componentDidMount() {
let versionResponse = await axios.get('https://purge.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/version.json')
let thankListResponse = await axios.get('https://purge.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/thank_you/list.json')
// 每次访问主动刷新下接口
axios.get('https://pruge.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/version.json').catch(e=>{})
axios.get('https://pruge.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/thank_you/list.json').catch(e=>{})
let versionResponse = await axios.get('https://cdn.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/version.json')
let thankListResponse = await axios.get('https://cdn.jsdelivr.net/gh/YaoZeyuan/stablog@master/upgrade_config/thank_you/list.json')
let config = versionResponse.data
let thankList = thankListResponse.data
this.setState({
Expand Down

0 comments on commit 6fde7ca

Please sign in to comment.