fix: 全局格式化

This commit is contained in:
Tim
2025-08-11 18:16:13 +08:00
parent 31cff70f63
commit 1c4df40f12
76 changed files with 1442 additions and 939 deletions

View File

@@ -40,7 +40,7 @@ export default {
passwordError: '',
isSending: false,
isVerifying: false,
isResetting: false
isResetting: false,
}
},
mounted() {
@@ -59,7 +59,7 @@ export default {
const res = await fetch(`${API_BASE_URL}/api/auth/forgot/send`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: this.email })
body: JSON.stringify({ email: this.email }),
})
this.isSending = false
if (res.ok) {
@@ -79,7 +79,7 @@ export default {
const res = await fetch(`${API_BASE_URL}/api/auth/forgot/verify`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: this.email, code: this.code })
body: JSON.stringify({ email: this.email, code: this.code }),
})
this.isVerifying = false
const data = await res.json()
@@ -104,7 +104,7 @@ export default {
const res = await fetch(`${API_BASE_URL}/api/auth/forgot/reset`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ token: this.token, password: this.password })
body: JSON.stringify({ token: this.token, password: this.password }),
})
this.isResetting = false
const data = await res.json()
@@ -120,8 +120,8 @@ export default {
this.isResetting = false
toast.error('重置失败')
}
}
}
},
},
}
</script>