nieyuge há 2 anos atrás
pai
commit
ebc98a543a
2 ficheiros alterados com 19 adições e 7 exclusões
  1. 18 6
      pages/index.vue
  2. 1 1
      utils/help.js

+ 18 - 6
pages/index.vue

@@ -336,8 +336,10 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: '',
 					},
+                    extParams: {
+                        status: '',
+                    }
 				}
 			})
 		},
@@ -358,8 +360,10 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: '',
 					},
+                    extParams: {
+                        status: '',
+                    }
 				}
 			})
 		},
@@ -385,8 +389,10 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: '',
 					},
+                    extParams: {
+                        status: '',
+                    }
 				}
 			})
 			switch (extensionsInstallChannel) {
@@ -655,8 +661,10 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
-                            status: '',
                         },
+                        extParams: {
+                            status: '',
+                        }
                     }
                 })
             }, 500)
@@ -707,8 +715,10 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
-                            status: this.reportStatus,
                         },
+                        extParams: {
+                            status: this.reportStatus,
+                        }
                     }
                 });
             }, 1000)
@@ -730,8 +740,10 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: this.reportStatus,
 					},
+                    extParams: {
+                        status: this.reportStatus,
+                    }
 				}
 			})
 		}

+ 1 - 1
utils/help.js

@@ -53,7 +53,7 @@ export function isBrowser() {
 export function getBrowser() {
     let browser;
     let UserAgent = navigator.userAgent.toLowerCase();
-    if (UserAgent.indexOf('chrome') > -1 && UserAgent.indexOf('crios') > -1) {
+    if (UserAgent.indexOf('chrome') > -1 || UserAgent.indexOf('crios') > -1) {
         browser = `Chrome`
     } else if (UserAgent.indexOf('firefox') > -1) {
         browser = `Firefox`