mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 08:50:20 +00:00
feat: oauth2 登录
This commit is contained in:
1 parent
f48d0a6393
commit
718bff0abb
12 files changed
+926
-753
No files matched your search
@@ -62,7 +62,7 @@ export const ServerCard: React.FC<ServerCardProps> = ({ data, mutate }) => {
|
||||
const [open, setOpen] = useState(false)
|
||||
|
||||
const onSubmit = async (values: z.infer<typeof serverFormSchema>) => {
|
||||
await updateServer(data.id, values)
|
||||
await updateServer(data!.id!, values)
|
||||
setOpen(false)
|
||||
await mutate()
|
||||
form.reset()
|
||||
@@ -122,7 +122,6 @@ export const ServerCard: React.FC<ServerCardProps> = ({ data, mutate }) => {
|
||||
{...field}
|
||||
value={conv.arrToStr(field.value || [])}
|
||||
onChange={(e) => {
|
||||
console.log(field.value)
|
||||
const arr = conv
|
||||
.strToArr(e.target.value)
|
||||
.map(Number)
|
||||
|
||||
Reference in new issue
Block a user