mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-16 12:46:35 +08:00
refactor: dbm
This commit is contained in:
@@ -592,7 +592,7 @@ const onSelectByCondition = async () => {
|
||||
*/
|
||||
const onTableSortChange = async (sort: any) => {
|
||||
const sortType = sort.order == 'desc' ? 'DESC' : 'ASC';
|
||||
state.orderBy = `ORDER BY ${sort.columnName} ${sortType}`;
|
||||
state.orderBy = `ORDER BY ${state.dbDialect.quoteIdentifier(sort.columnName)} ${sortType}`;
|
||||
await onRefresh();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user