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 @@ - - - - - + + + + + - +