Skip to content

Commit

Permalink
fix: get server data from sdo website
Browse files Browse the repository at this point in the history
  • Loading branch information
oott123 authored Nov 11, 2024
1 parent 70e7915 commit f742a69
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/.vuepress/theme/global-components/ServerList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,8 @@ export default {
methods: {
handleData(json) {
this.isLoading = false
if (!json.IsSuccess || !json.Data) {
this.isError = true
return
}
dcCache.setCache(json)
this.dcList = json.Data.map(dc => ({
this.dcList = json.map(dc => ({
name: dc.AreaName,
servers: dc.Group.map(srv => ({
name: srv.name,
Expand Down

0 comments on commit f742a69

Please sign in to comment.