panhui 4 years ago
parent
commit
01e8cec588
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/main/nine-space/src/components/Post.vue

+ 8 - 2
src/main/nine-space/src/components/Post.vue

@@ -98,13 +98,19 @@ export default {
     },
     computed: {
         url() {
+            let pageUrl = this.pageUrl;
+            let id = this.info.id;
+            if (pageUrl === 'assetDetail') {
+                pageUrl = 'productDetail';
+                id = this.info.publicCollectionId;
+            }
             if (this.isLogin) {
                 return resolveUrl(
                     this.$baseUrl,
-                    '9th/' + this.pageUrl + '?id=' + this.info.id + '&invitor=' + this.$store.state.userInfo.id
+                    '9th/' + pageUrl + '?id=' + id + '&invitor=' + this.$store.state.userInfo.id
                 );
             } else {
-                return resolveUrl(this.$baseUrl, '9th/' + this.pageUrl + '?id=' + this.info.id);
+                return resolveUrl(this.$baseUrl, '9th/' + pageUrl + '?id=' + id);
             }
         },
         banners() {