fix 只有一列的时候默认版面为表格模式

This commit is contained in:
kuaifan 2021-12-22 20:28:40 +08:00
parent d16b846d4e
commit 75c83e4117

View File

@ -765,7 +765,7 @@ export default {
// 判断只有1列的时候默认版面为表格模式 // 判断只有1列的时候默认版面为表格模式
if (state.columns.filter(item => item.project_id == project_id).length === 1) { if (state.columns.filter(item => item.project_id == project_id).length === 1) {
const cache = state.cacheTablePanel.find(item => item.project_id == project_id) || {}; const cache = state.cacheTablePanel.find(item => item.project_id == project_id) || {};
if (typeof cache.cardInit === "undefined") { if (typeof cache.cardInit === "undefined" || cache.cardInit === false) {
dispatch("toggleTablePanel", { dispatch("toggleTablePanel", {
project_id, project_id,
key: { key: {