diff --git a/src/views/fileList/list.vue b/src/views/fileList/list.vue index 6f3cff2..be7fe26 100644 --- a/src/views/fileList/list.vue +++ b/src/views/fileList/list.vue @@ -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; diff --git a/src/views/systemList/password/password.vue b/src/views/systemList/password/password.vue index 4b875db..8579571 100644 --- a/src/views/systemList/password/password.vue +++ b/src/views/systemList/password/password.vue @@ -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; }