Sfoglia il codice sorgente

Merge branch 'demand-199-copy'

cxmo 5 mesi fa
parent
commit
1937860e6a

+ 5 - 1
src/views/ppt_manage/mixins/pptEditorMixins.js

@@ -51,12 +51,16 @@ export default{
   },
   methods:{
     //切换标题编辑模式
-    handleEditTitle(){
+    handleEditTitle(item){
         //判断当前ppt是否添加了页面
         if(this.pageList.length===0){
         this.$message.warning(this.$t('Slides.msg_page_at_least_one'))
         return
         }
+        //如果点击的页不是当前页,将点击页切换至当前页
+        if(this.currentItem.id!==item.id){
+            this.changeCurrentItem(item)
+        }
         this.isEditTitle = !this.isEditTitle
         if(this.isEditTitle){
             //进入标题编辑模式,需要退出其他模式

+ 1 - 1
src/views/ppt_manage/newVersion/pptEditor.vue

@@ -60,7 +60,7 @@
                             <input type="text" placeholder="单击输入标题" v-model="item.title"/> 
                         </div> -->
                         <!-- 自定义标题 -->
-                        <div @click.stop="handleEditTitle"
+                        <div @click.stop="handleEditTitle(item)"
                             :class="[
                                 'ppt-editor-title',
                                 'custom-title-wrap',