rht02261216
This commit is contained in:
parent
35c9fab24b
commit
fa7edff855
|
@ -53,7 +53,7 @@ const HeroSection = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const count = countNonZeroValues(statistics);
|
const count = countNonZeroValues(statistics);
|
||||||
console.log(count);
|
//console.log(count);
|
||||||
setCountStatistics(count);
|
setCountStatistics(count);
|
||||||
}, [statistics]);
|
}, [statistics]);
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { api } from "@nice/client/";
|
||||||
import { Checkbox, Form } from "antd";
|
import { Checkbox, Form } from "antd";
|
||||||
import { TermDto } from "@nice/common";
|
import { TermDto } from "@nice/common";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
|
||||||
export default function TermParentSelector({
|
export default function TermParentSelector({
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
|
@ -13,11 +12,7 @@ export default function TermParentSelector({
|
||||||
domainId,
|
domainId,
|
||||||
style,
|
style,
|
||||||
}: any) {
|
}: any) {
|
||||||
const utils = api.useUtils();
|
|
||||||
const [selectedValues, setSelectedValues] = useState<string[]>([]); // 用于存储选中的值
|
const [selectedValues, setSelectedValues] = useState<string[]>([]); // 用于存储选中的值
|
||||||
const [termsData, setTermsData] = useState<any[]>([]);
|
|
||||||
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data,
|
data,
|
||||||
isLoading,
|
isLoading,
|
||||||
|
@ -42,7 +37,7 @@ export default function TermParentSelector({
|
||||||
<Checkbox.Group onChange={handleCheckboxChange}>
|
<Checkbox.Group onChange={handleCheckboxChange}>
|
||||||
{data?.map((category) => (
|
{data?.map((category) => (
|
||||||
<div className="w-full h-9 p-2 my-1">
|
<div className="w-full h-9 p-2 my-1">
|
||||||
<Checkbox className="text-base text-slate-700" key={category.id} value={category.id}>
|
<Checkbox className="text-base text-slate-700" key={category.id} value={category.id}>
|
||||||
{category.name}
|
{category.name}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue