mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
用户信息api添加管理员授权
This commit is contained in:
@@ -46,7 +46,7 @@ function UserTableSearchInput({ users, setUsers, setLoading }: UserInterface) {
|
||||
setLoading(true);
|
||||
const fetchUsers = async () => {
|
||||
try {
|
||||
const url = new URL("/api/admin/users/", "http://localhost:3000");
|
||||
const url = new URL("/api/admin/users/", window.location.href);
|
||||
url.searchParams.append("search", searchText);
|
||||
console.log(url, "url");
|
||||
const response = await fetch(url);
|
||||
|
||||
Reference in New Issue
Block a user