Merge branch 'dev-3.7' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.7
This commit is contained in:
@@ -83,9 +83,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.$nextTick(() => {
|
|
||||||
this.getAssetList()
|
this.getAssetList()
|
||||||
})
|
|
||||||
this.token = localStorage.getItem('nz-token')
|
this.token = localStorage.getItem('nz-token')
|
||||||
axios.get('/healthy').then(response => {
|
axios.get('/healthy').then(response => {
|
||||||
const url = response.request.responseURL
|
const url = response.request.responseURL
|
||||||
@@ -107,10 +105,10 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.assetList = response.data.list
|
this.assetList = response.data.list
|
||||||
if (this.assetList && this.assetList.length > 0) {
|
if (this.assetList && this.assetList.length > 0) {
|
||||||
// setTimeout(() => {
|
this.$nextTick(() => {
|
||||||
this.assetId = String(this.assetList[0].id)
|
this.assetId = String(this.assetList[0].id)
|
||||||
this.loadFinish = true
|
this.loadFinish = true
|
||||||
// }, 100)
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user