yunxing %!s(int64=4) %!d(string=hai) anos
pai
achega
bc039a7d88

+ 1 - 1
src/views/equipmentFacilities/EquipmentList.vue

@@ -140,7 +140,7 @@ export default {
     components: {},
     created() {
         this.system_code = this.smsxt
-        let { title, category_code } = this.$route.params
+        let { title, category_code } = this.$route.query
         this.title = title
         this.category_code = category_code
         this.onLoad()

+ 1 - 1
src/views/equipmentFacilities/index.vue

@@ -532,7 +532,7 @@ export default {
         goToEquipment(data) {
             console.log(data)
             let { name, category_code } = data
-            this.$router.push({ name: 'EquipmentList', params: { title: name, category_code } })
+            this.$router.push({ name: 'EquipmentList', query: { title: name, category_code } })
         },
         /**
          * 点击更多设备卡片,跳转设备列表页面