🎨 Clean code

This commit is contained in:
Daniel 2025-07-14 10:22:46 +08:00
parent 1c9d44f641
commit 7e885478ed
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -32,7 +32,8 @@ import {assetMenu} from "../../../menus/protyle";
import {
addView,
bindSwitcherEvent,
bindViewEvent, getFieldsByData,
bindViewEvent,
getFieldsByData,
getSwitcherHTML,
getViewHTML,
openViewMenu
@ -961,7 +962,7 @@ export const openMenuPanel = (options: {
type: target.dataset.oldType as TAVCol,
}]);
// 需要取消 lineNumber 列的排序和过滤
// 需要取消行号列的筛选和排序
if (target.dataset.newType === "lineNumber") {
const sortExist = data.view.sorts.find((sort) => sort.column === colId);
if (sortExist) {