Bladeren bron

fix: 定位跳转预测指标和本地缓存指标的优先级

Karsa 6 maanden geleden
bovenliggende
commit
071497aeba
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      src/views/predictEdb_manage/predictEdb.vue

+ 3 - 3
src/views/predictEdb_manage/predictEdb.vue

@@ -1477,9 +1477,9 @@ export default {
 	mounted() {
 		const obj=sessionStorage.getItem('predictEdbTreeData')
 		if(obj||this.$route.query.code){
-			let code=obj?JSON.parse(obj).code:this.$route.query.code
-			let id=obj?JSON.parse(obj).id:this.$route.query.id
-			let classifyId=obj?JSON.parse(obj).classifyId:this.$route.query.classifyId
+			let code=obj?this.$route.query.code:JSON.parse(obj).code
+			let id=obj?this.$route.query.id:JSON.parse(obj).id
+			let classifyId=obj?this.$route.query.classifyId:JSON.parse(obj).classifyId
 			this.getTreeData({code: code,id: Number(id),classifyId:Number(classifyId)})
 		}else{
 			this.getTreeData()