Browse Source

[edit] default title

wenliming 2 năm trước cách đây
mục cha
commit
d6dcd8d23f

+ 5 - 2
src/view/iframe/publish/give-dialog.vue

@@ -123,7 +123,8 @@
                         <template v-if="publishType == 'TOOL_BOX'">
                             <tool-box 
                                 :pageData="{
-                                    'linkInputDescImage': toolBoxPageData.postEditorLinkInputDescImage
+                                    'linkInputDescImage': toolBoxPageData.postEditorLinkInputDescImage,
+                                    'defaultLinkTitle': toolBoxPageData.postEditorDefaultLinkTitle
                                 }"
                                 :activePage="toolBoxPageData.activePage" @onPageChange="onToolBoxPageChange"
                                 @toolBoxPublishFinish="toolBoxPublishFinish"></tool-box>
@@ -764,7 +765,8 @@ let leftTabList = reactive([
 
 let toolBoxPageData = reactive({
     activePage: 'EDITOR', //EDITOR PREVIEW
-    postEditorLinkInputDescImage: ''
+    postEditorLinkInputDescImage: '',
+    postEditorDefaultLinkTitle: ''
 })
 
 
@@ -1828,6 +1830,7 @@ const setFrontConfig = () => {
             paypalHtml.value = res.data.paypalHtml;
             lotteryMaxHourDuration = res.data.lotteryMaxHourDuration;
             toolBoxPageData.postEditorLinkInputDescImage = res.data.postEditorLinkInputDescImage;
+            toolBoxPageData.postEditorDefaultLinkTitle = res.data.postEditorDefaultLinkTitle;
         }
     });
 };

+ 5 - 1
src/view/iframe/publish/tool-box/child/preview.vue

@@ -47,7 +47,7 @@
                                     {{previewData.currentApp.linkTitle}}
                                 </template>
                                 <template v-else>
-                                    {{previewData.currentApp.defaultTit ? 'Install DeNet Plugin to Participate' : previewData.currentApp.name}}
+                                    {{previewData.currentApp.defaultTit ? defaultLinkTitle : previewData.currentApp.name}}
                                 </template>
                             </div>
                         </div>
@@ -106,6 +106,10 @@ const props = defineProps({
             }
         }
     },
+    defaultLinkTitle: {
+        type: String,
+        default: ''
+    },
     showCom: {
         type: String,
         default: 'EDITOR'

+ 3 - 1
src/view/iframe/publish/tool-box/index.vue

@@ -5,6 +5,7 @@
             :previewData="previewData" 
             :screenshotWebsiteData="screenshotWebsiteData"
             :showCom="showCom"
+            :defaultLinkTitle="pageData.defaultLinkTitle"
             @publishFinish="publishFinish" />
     </div>
 </template>
@@ -20,7 +21,8 @@ const props = defineProps({
     pageData: {
         type: Object,
         default: {
-            linkInputDescImage: ''
+            linkInputDescImage: '',
+            defaultLinkTitle: ''
         }
     },
     activePage: {