anxiaoxia 1 år sedan
förälder
incheckning
476657f914
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      src/packagesEnv/pages/officehome/index.wpy

+ 3 - 2
src/packagesEnv/pages/officehome/index.wpy

@@ -523,7 +523,7 @@ page {
             >
                 <!--      <map-home    v-if="userInfo&& userInfo.userId" -->
                 <map-home @mapChangeSpaceInfo="mapChangeSpaceInfo"
-                :space="userControlSpace"
+                :space="toMapSpace"
                 ></map-home>
             </div>
             <div
@@ -1306,7 +1306,7 @@ wepy.page({
 
       if (this.routeParams.from === 'FindIt') {
         this.getCurrentSpace('FindIt')
-        this.isUserControlFromMap = this.routeParams.isUserControl
+        this.toMapSpace = JSON.parse(JSON.stringify(this.routeParams))
         this.options.spaceId = this.routeParams.spaceId
         this.moveToBottom = true  // 来自找一找, 页面在底部
         this.getData() // 获取数据
@@ -1359,6 +1359,7 @@ wepy.page({
       return checkUserControl().then(res => {
         // isControlSpace 1-租户下无可控;2-租户有可控;3-用户有可控 4-当前空间为常驻空间
         this.userControlSpace = res
+        this.toMapSpace = JSON.parse(JSON.stringify(res))
         // 从首页进入 才给空间重新赋值
         if (from === 'home') {
           this.options.spaceId = res.spaceId || ''