feat 完善页码搜索, 优化更换密码
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user