chatbox ui

This commit is contained in:
archer
2023-07-11 23:22:01 +08:00
parent eb768d9c04
commit b2e2f60e0d
46 changed files with 1123 additions and 2817 deletions

View File

@@ -12,8 +12,6 @@ const modelList = () => {
const { Loading } = useLoading();
const lastSearch = useRef('');
const [searchText, setSearchText] = useState('');
const { refreshModel } = useUserStore();
/* 加载模型 */
const {
data: models,
@@ -30,16 +28,15 @@ const modelList = () => {
});
const onclickCollection = useCallback(
async (modelId: string) => {
async (appId: string) => {
try {
await triggerModelCollection(modelId);
await triggerModelCollection(appId);
getData(pageNum);
refreshModel.removeModelDetail(modelId);
} catch (error) {
console.log(error);
}
},
[getData, pageNum, refreshModel]
[getData, pageNum]
);
return (