mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
✅ 为什么前端 pnpm 和 yarn 的行为还不一样(
This commit is contained in:
parent
f31a798326
commit
7d3193d958
@ -1,15 +1,20 @@
|
||||
import React, { useState } from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import {
|
||||
Button, Space, Table, Typography,
|
||||
Button, Empty, Space, Table, Typography,
|
||||
} from '@arco-design/web-react';
|
||||
import { useDeleteCookieTargetMutation, useGetCookieTargetsQuery } from '../cookieManager/cookieConfigSlice';
|
||||
import { CookieTarget } from '../../utils/type';
|
||||
import CookieTargetModal from './CookieTargetModal';
|
||||
|
||||
export default function () {
|
||||
const { cookieId } = useParams();
|
||||
const { data: cookieTargets } = useGetCookieTargetsQuery(cookieId);
|
||||
const { cookieId: cookieParam } = useParams();
|
||||
if (cookieParam === undefined) {
|
||||
return <Empty />;
|
||||
}
|
||||
const cookieId = parseInt(cookieParam, 10);
|
||||
|
||||
const { data: cookieTargets } = useGetCookieTargetsQuery({ cookieId });
|
||||
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
const [deleteCookieTarget] = useDeleteCookieTargetMutation();
|
||||
|
Loading…
x
Reference in New Issue
Block a user