File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -77,28 +77,28 @@ class XServers extends VuexModule {
77
77
// get server data from the api2 server
78
78
try {
79
79
const { data } = await axios . get (
80
- 'https://api2 .smoo.it/servers.json' ,
80
+ 'https://api .smoo.it/servers.json' ,
81
81
{
82
82
timeout : 10000 , // 10s
83
83
} ,
84
84
)
85
85
this . loaded ( data )
86
86
} catch ( error1 ) {
87
87
console . error ( error1 )
88
- // // fallback to another server
89
- // try {
90
- // const { data } = await axios.get(
91
- // 'https://api2.smoo.it/servers.json',
92
- // {
93
- // timeout: 10000, // 10s
94
- // },
95
- // )
96
- // this.loaded(data )
97
- // } catch (error2) {
98
- // console.error (error2)
99
- // this.failed(error1 as Error )
100
- // }
101
- this . failed ( error1 as Error )
88
+
89
+ // fallback to another server
90
+ try {
91
+ const { data } = await axios . get (
92
+ 'https://api2.smoo.it/servers.json' ,
93
+ {
94
+ timeout : 10000 , // 10s
95
+ } ,
96
+ )
97
+ this . loaded ( data )
98
+ } catch ( error2 ) {
99
+ console . error ( error2 )
100
+ this . failed ( error1 as Error )
101
+ }
102
102
}
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments