浏览代码

链接地址的修改

zhulizhen 6 年之前
父节点
当前提交
865d6dab55
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)