|
|
@ -7,7 +7,7 @@ import { |
|
|
|
} from '@ant-design/pro-components' |
|
|
|
import { createLazyFileRoute } from '@tanstack/react-router' |
|
|
|
import { useStyle } from './style.ts' |
|
|
|
import { useEffect, useMemo, useRef, useState } from 'react' |
|
|
|
import { memo, useEffect, useMemo, useRef, useState } from 'react' |
|
|
|
import { useAtom, useAtomValue, useSetAtom } from 'jotai' |
|
|
|
import { pageAtom, roleAtom, rolesAtom, saveOrUpdateRoleAtom, searchAtom } from './store.ts' |
|
|
|
import { useTranslation } from '@/i18n.ts' |
|
|
@ -38,7 +38,7 @@ const MenuTree = (props: any) => { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const Roles = () => { |
|
|
|
const Roles = memo(() => { |
|
|
|
|
|
|
|
const { t } = useTranslation() |
|
|
|
const { styles } = useStyle() |
|
|
@ -196,7 +196,7 @@ const Roles = () => { |
|
|
|
columns={columns}/> |
|
|
|
</PageContainer> |
|
|
|
) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
export const Route = createLazyFileRoute('/system/roles')({ |
|
|
|
component: Roles |
|
|
|