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