瀏覽代碼

修改bug

修改bug
Sean 5 月之前
父節點
當前提交
331f542088
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 4 4
      src/views/template/page/pageArticle.vue
  2. 4 4
      src/views/template/page/pageList.vue

+ 4 - 4
src/views/template/page/pageArticle.vue

@@ -9,7 +9,7 @@
       <menuSector />
     </div>
     <!-- 无内容占位符 -->
-    <div :class="['FixedMainModuleBox', { FixedMainModuleBoxBorder: this.$store.state.template.previewStatus==false }]" v-if="this.$store.state.template.pageData.index.length == 0">
+    <div :class="['FixedMainModuleBox', { FixedMainModuleBoxBorder: this.$store.state.template.previewStatus==false }]" v-if="this.$store.state.template.pageData.article.length == 0">
       <img src="@/assets/template/creat.png">
       <div>请点击一个左侧板块,开始您的网站创建</div>
     </div>
@@ -17,8 +17,8 @@
     <div id="content">
       <grid-layout 
         ref="gridlayout"
-        :layout="this.$store.state.template.pageData.index" 
-        :layout.sync="this.$store.state.template.pageData.index"
+        :layout="this.$store.state.template.pageData.article" 
+        :layout.sync="this.$store.state.template.pageData.article"
         :col-num="12" 
         :row-height="rowHeight" 
         :margin="[0,0]" 
@@ -27,7 +27,7 @@
         :key="this.$store.state.template.gridKey
         ">
         <grid-item 
-          v-for="(item, index) in this.$store.state.template.pageData.index" 
+          v-for="(item, index) in this.$store.state.template.pageData.article" 
           :key="item.i" 
           :i="item.i" 
           :x="item.x" 

+ 4 - 4
src/views/template/page/pageList.vue

@@ -9,7 +9,7 @@
       <menuSector />
     </div>
     <!-- 无内容占位符 -->
-    <div :class="['FixedMainModuleBox', { FixedMainModuleBoxBorder: this.$store.state.template.previewStatus==false }]" v-if="this.$store.state.template.pageData.index.length == 0">
+    <div :class="['FixedMainModuleBox', { FixedMainModuleBoxBorder: this.$store.state.template.previewStatus==false }]" v-if="this.$store.state.template.pageData.list.length == 0">
       <img src="@/assets/template/creat.png">
       <div>请点击一个左侧板块,开始您的网站创建</div>
     </div>
@@ -17,8 +17,8 @@
     <div id="content">
       <grid-layout 
         ref="gridlayout"
-        :layout="this.$store.state.template.pageData.index" 
-        :layout.sync="this.$store.state.template.pageData.index"
+        :layout="this.$store.state.template.pageData.list" 
+        :layout.sync="this.$store.state.template.pageData.list"
         :col-num="12" 
         :row-height="rowHeight" 
         :margin="[0,0]" 
@@ -27,7 +27,7 @@
         :key="this.$store.state.template.gridKey
         ">
         <grid-item 
-          v-for="(item, index) in this.$store.state.template.pageData.index" 
+          v-for="(item, index) in this.$store.state.template.pageData.list" 
           :key="item.i" 
           :i="item.i" 
           :x="item.x"