feat: 后台自定义代码 & 后端语言优先

This commit is contained in:
naiba
2024-12-15 15:08:57 +08:00
parent 830992a74d
commit 8e45f8ca6f
6 changed files with 92 additions and 65 deletions

View File

@@ -3,6 +3,5 @@ import { ModelSettingResponse } from "@/types"
import useSWR from "swr"
export default function useSetting() {
const { data } = useSWR<ModelSettingResponse>("/api/v1/setting", swrFetcher)
return data
return useSWR<ModelSettingResponse>("/api/v1/setting", swrFetcher)
}