Quellcode durchsuchen

链接地址的修改

zhulizhen vor 6 Jahren
Ursprung
Commit
865d6dab55
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/views/spread/index.vue

+ 2 - 2
src/views/spread/index.vue

@@ -225,8 +225,8 @@ export default {
     },
     getEqNameAndId () {
       let hostUrl = location.search
-      this.objectId = hostUrl.split("&")[1].toString().split("=")[1]
-      let pid = hostUrl.split("&")[0].toString().split("=")[1]
+      this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
+      let pid = hostUrl.split("&")[1].toString().split("=")[1]
       console.log(pid, this.$store.state.projId)
       this.$store.commit('setProId', pid)
       this.initData(this.objectId)