|
|
@@ -86,7 +86,7 @@ const Areas: React.FC = () => {
|
|
|
const createArea = useMutation({
|
|
|
mutationFn: async (data: any) => {
|
|
|
const res = await areaClient.$post({ json: data as any });
|
|
|
- if (res.status !== 200) {
|
|
|
+ if (res.status !== 201) {
|
|
|
throw new Error('创建区域失败');
|
|
|
}
|
|
|
return res.json();
|