移除调试日志,优化代码整洁性
This commit is contained in:
parent
a8f889f886
commit
1b1196cb21
@ -227,7 +227,6 @@ const requestQueryRecord = async (id: number) => {
|
||||
|
||||
const initialize = async () => {
|
||||
let res = await requestRecordCount();
|
||||
console.log(res);
|
||||
if (res?.error) {
|
||||
dialog('发生异常', res.error);
|
||||
return;
|
||||
|
@ -219,7 +219,6 @@ let useFraction = false;
|
||||
const answerLabel = ref('答案');
|
||||
|
||||
watch(editedItem, (newValue, oldValue) => {
|
||||
console.log(`${JSON.stringify(oldValue)} => ${JSON.stringify(newValue)}`);
|
||||
if (newValue.answer != oldValue.answer) {
|
||||
answerLabel.value = '答案';
|
||||
}
|
||||
|
@ -67,12 +67,10 @@ const requestRepasswd = async () => {
|
||||
formData.append("user_id", userId.value);
|
||||
formData.append("new_passwd", password.value);
|
||||
let res = await axios.post('/api/auth/repasswd', formData);
|
||||
console.log(res.data);
|
||||
return res.data as RepasswdResponse;
|
||||
} catch (e) {
|
||||
let ex = e as AxiosError;
|
||||
if (ex.response?.data) {
|
||||
console.log(ex.response?.data);
|
||||
return ex.response?.data as RepasswdResponse;
|
||||
} {
|
||||
return { error: ex.message };
|
||||
|
Loading…
Reference in New Issue
Block a user