feat 完善页码搜索, 优化更换密码

This commit is contained in:
Ironsp
2026-06-09 15:23:55 +08:00
parent b3d8da2365
commit b10f4c4172
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ const { queryParams, form, rules } = toRefs(data);
/** 查询测试单列表 */
const getList = async (params?: any) => {
loading.value = true;
const res = await listDemo(params || queryParams.value);
const res = await listDemo(queryParams.value);
demoList.value = res.rows;
total.value = res.total;
loading.value = false;

View File

@@ -70,7 +70,7 @@ const rules = ref({
const submit = async () => {
const res = await getUserProfile();
console.log('当前用户信息', res);
if (!user.value.username != res.data.userName) {
if (user.value.username != res.data.user?.userName) {
proxy?.$modal.msgError('账号填写错误');
return false;
}