fix table-list
This commit is contained in:
parent
32330d08e6
commit
273bcf451e
|
|
@ -247,7 +247,7 @@ export const TableList: FC<TableListProp> = ({
|
|||
local.render();
|
||||
done();
|
||||
|
||||
if (local.grid_ref) local.paging.scroll(local.grid_ref);
|
||||
if (local.grid_ref && !id_parent) local.paging.scroll(local.grid_ref);
|
||||
};
|
||||
|
||||
if (result instanceof Promise) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export const sessionClient = async <T extends SessionData>(arg: {
|
|||
editorSampleData: T;
|
||||
auth: {
|
||||
mode: "user-pass";
|
||||
login: (arg: { username: string; password: string }) => Promise<false | T>;
|
||||
};
|
||||
on?: Partial<{
|
||||
active: (arg: { token: string; data: T }) => any;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,16 @@ type ServerSession = {
|
|||
}) => Promise<Response>;
|
||||
};
|
||||
|
||||
export const sessionServer = (arg: { encrypt?: boolean }): ServerSession => {
|
||||
export const sessionServer = <T>(arg: {
|
||||
encrypt?: boolean;
|
||||
on: {
|
||||
login: (arg: {
|
||||
mode: "user-pass";
|
||||
username: string;
|
||||
password: string;
|
||||
}) => Promise<false | T>;
|
||||
};
|
||||
}): ServerSession => {
|
||||
const s: ServerSession = {
|
||||
async handle({ req, handle, mode, url }) {
|
||||
if (url.pathname.startsWith("/_session")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue