shish 1 месяц назад
Родитель
Сommit
6a81158477
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      hdApp/src/admin/clear/info.vue

+ 10 - 1
hdApp/src/admin/clear/info.vue

@@ -151,15 +151,23 @@ export default {
 				name: ""
 			},
 			detailInfo: {},
-			loading: false
+			loading: false,
+			justLoaded: false
 		};
 	},
 	computed: {
 		...mapGetters(["getLoginInfo"])
 	},
 	onShow(){
+		if (this.justLoaded) {
+			this.justLoaded = false
+			return
+		}
 		this.beginLoad()
 	},
+	onHide() {
+		this.justLoaded = false
+	},
 	onLoad(){
     	this.beginLoad()
   	},
@@ -277,6 +285,7 @@ export default {
 					id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
 				}
 			}
+			this.justLoaded = true
 			if(Number(id)>0){
 				this.getInfo(Number(id))
 			}