fix:用户信息界面错误提示修复
This commit is contained in:
@@ -13,17 +13,12 @@ const { t } = useI18n();
|
|||||||
// 修改API函数实现
|
// 修改API函数实现
|
||||||
const doGetUserInfo = async (params: SearchModel) => {
|
const doGetUserInfo = async (params: SearchModel) => {
|
||||||
try {
|
try {
|
||||||
console.log('API function received params:', params);
|
|
||||||
|
|
||||||
const apiParams: Api.SystemManage.UserSearchParams = {
|
const apiParams: Api.SystemManage.UserSearchParams = {
|
||||||
userName: params.username,
|
userName: params.username,
|
||||||
email: params.email,
|
email: params.email,
|
||||||
pageNum: params.pageNum,
|
pageNum: params.pageNum,
|
||||||
pageSize: params.pageSize
|
pageSize: params.pageSize
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('Sending API request with params:', apiParams);
|
|
||||||
|
|
||||||
const response = await doGetUserList(apiParams);
|
const response = await doGetUserList(apiParams);
|
||||||
|
|
||||||
if (!response.data) {
|
if (!response.data) {
|
||||||
@@ -189,7 +184,6 @@ const {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const handUpdateModel = (item: SearchModel) => {
|
const handUpdateModel = (item: SearchModel) => {
|
||||||
console.log('Received updated model:', item);
|
|
||||||
// 更新搜索参数
|
// 更新搜索参数
|
||||||
updateSearchParams({
|
updateSearchParams({
|
||||||
...item,
|
...item,
|
||||||
@@ -200,7 +194,6 @@ const handUpdateModel = (item: SearchModel) => {
|
|||||||
// 处理搜索
|
// 处理搜索
|
||||||
const handleSearch = () => {
|
const handleSearch = () => {
|
||||||
// 直接使用已更新的搜索参数
|
// 直接使用已更新的搜索参数
|
||||||
console.log('Executing search with params:', searchParams.value);
|
|
||||||
getData();
|
getData();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user