From db47ab88751ba7e9723172bcbc65ed747b837740 Mon Sep 17 00:00:00 2001 From: lingxiao <493263159@qq.com> Date: Wed, 6 Apr 2022 11:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tableHeight.js | 4 ++-- src/views/system/role/index.vue | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/tableHeight.js b/src/utils/tableHeight.js index 813c661..8a8a938 100644 --- a/src/utils/tableHeight.js +++ b/src/utils/tableHeight.js @@ -3,9 +3,9 @@ export function calculationTableHeight(ref, plusHeight) { return ref.offsetHeight - plusHeight || 0; }; // 保存列宽 -export function saveRowWidth({rawColumnKey}, width) { +export function saveRowWidth({property}, width) { let allRowWidth = localStorage.allRowWidth ? JSON.parse(localStorage.allRowWidth) : {}; - allRowWidth[rawColumnKey] = width; + allRowWidth[property] = width; localStorage.allRowWidth = JSON.stringify(allRowWidth); } // 获取列表 diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index c9c9b23..7837b62 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -15,11 +15,11 @@ - - - - - + + + + + - +