mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 22:36:23 +00:00
fix: 修复账号点击查看弹出错误提示
This commit is contained in:
@@ -110,7 +110,14 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const url = `/api/v1/accounts/account-secrets/${this.account.id}/histories/?limit=1`
|
const url = `/api/v1/accounts/account-secrets/${this.account.id}/histories/?limit=1`
|
||||||
this.$axios.get(url).then(resp => {
|
this.$axios.get(url,
|
||||||
|
{
|
||||||
|
validateStatus: (status) => {
|
||||||
|
if (status === 400) return 200
|
||||||
|
return status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
).then(resp => {
|
||||||
this.historyCount = resp.count
|
this.historyCount = resp.count
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user