|
@@ -249,15 +249,16 @@ export default {
|
249
|
249
|
async handleGetUpdateTime() {
|
250
|
250
|
console.log('handleGetUpdateTime => ')
|
251
|
251
|
try {
|
252
|
|
- // const { data: res = {} } = await this.$axios.get(this.URL.xxx, {
|
253
|
|
- // params: {}
|
254
|
|
- // })
|
255
|
|
- // if (res && res.errno == 0) {
|
256
|
|
- // this.updateTime = res.rst.updateTime
|
257
|
|
- // } else if (res.errno != 4002) {
|
258
|
|
- // this.$message.warning(res.err)
|
259
|
|
- // this.updateTime = ''
|
260
|
|
- // }
|
|
252
|
+ const params = { type: '' }
|
|
253
|
+ if (this.isMP) params.type = 'account_data_trend_mp'
|
|
254
|
+ if (this.isADQ) params.type = 'account_data_trend_adq'
|
|
255
|
+ const { data: res = {} } = await this.$axios.get(`${this.URL.BASEURL}${this.URL.dataBoard_uptime}`, { params })
|
|
256
|
+ if (res && res.errno == 0) {
|
|
257
|
+ this.updateTime = res.rst.uptime
|
|
258
|
+ } else if (res.errno != 4002) {
|
|
259
|
+ this.$message.warning(res.err)
|
|
260
|
+ this.updateTime = ''
|
|
261
|
+ }
|
261
|
262
|
} catch (error) {
|
262
|
263
|
this.updateTime = ''
|
263
|
264
|
}
|