|
@@ -58,10 +58,12 @@ const loadDifference = () => {
|
|
|
const load = () => {
|
|
|
loading.value = true
|
|
|
request.sendGet('/backup/' + props.id).success(res => {
|
|
|
- backupData.push(...res)
|
|
|
- current.value = backupData[0] || {}
|
|
|
- if(current.value){
|
|
|
- loadDifference()
|
|
|
+ if(res && res.length > 0){
|
|
|
+ backupData.push(...res)
|
|
|
+ current.value = backupData[0] || {}
|
|
|
+ if(current.value){
|
|
|
+ loadDifference()
|
|
|
+ }
|
|
|
}
|
|
|
loading.value = false
|
|
|
})
|