移除调试日志,优化代码整洁性

This commit is contained in:
keqingmoe 2024-12-31 00:04:51 +08:00
parent a8f889f886
commit 1b1196cb21
3 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -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 = '答案';
}

View File

@ -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 };