Przeglądaj źródła

产品列表默认不请求

yusheng 1 rok temu
rodzic
commit
4cf502facd

+ 1 - 1
src/views/material/product/components/index-data.vue

@@ -4,7 +4,7 @@
     <ele-pro-table ref="table" :columns="newColumns" :datasource="datasource" :need-page="true"
       :selection.sync="selection" :current.sync="rowCurrent" @sort-change="onSortChange" highlight-current-row
       height="calc(100vh - 412px)" full-height="calc(100vh - 116px)" tool-class="ele-toolbar-form" :page-size="pageSize"
-      @columns-change="handleColumnChange" :cache-key="cacheKeyUrl" v-if="pageShow">
+   :initLoad="false" @columns-change="handleColumnChange"  :cache-key="cacheKeyUrl" v-if="pageShow">
       <!-- 表头工具栏 -->
       <template v-slot:toolbar>
         <el-button size="small" type="primary" icon="el-icon-plus" class="ele-btn-icon" @click="openEdit({}, 2)">