Browse Source

分享添加testcaseId

曹冬冬 5 years ago
parent
commit
59b625f2ad

+ 5 - 1
src/components/ShareSetting.vue

@@ -65,7 +65,11 @@ export default {
   data() {
     return {
       shareImg: this.shareModel.shareImg,
-      releaseUrl: appConst.DIAOYANBAO_PATH + this.shareModel.id
+      releaseUrl:
+        appConst.DIAOYANBAO_PATH +
+        this.shareModel.id +
+        "&testcaseId=" +
+        this.shareModel.testcaseId
     };
   },
   props: {

+ 1 - 0
src/views/h5editor/index.vue

@@ -549,6 +549,7 @@
             editorPage() {
                 this.shareModel = {
                     id: this.itemId,
+                    testcaseId: this.testcaseId,
                     shareTitle: this.$store.state.editor.editorTheme.shareTitle,
                     shareContent: this.$store.state.editor.editorTheme.shareContent,
                     shareImg: this.$store.state.editor.editorTheme.shareImg,

+ 1 - 0
src/views/myHistoryTest/myHistoryTest.js

@@ -195,6 +195,7 @@ export default {
         if (res.success) {
           this.shareModel = {
             id: item._id,
+            testcaseId: item.testcaseId,
             shareTitle: res.single.shareTitle,
             shareContent: res.single.shareContent,
             shareImg: res.single.shareImg,