mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
fix: remove unnecessary console log
This commit is contained in:
1 parent
72b2711367
commit
50bed23d37
8 files changed
+2
-14
No files matched your search
@@ -64,7 +64,6 @@ async function check() {
|
||||
}
|
||||
|
||||
function handleRegister() {
|
||||
console.log('register', username.value, email.value, password.value)
|
||||
register(username.value, email.value, password.value)
|
||||
.then((isSuccess) => {
|
||||
if (isSuccess) {
|
||||
|
||||
@@ -46,7 +46,7 @@ function resizeScreen() {
|
||||
// 窗口大小改变时,触发xterm的resize方法使自适应
|
||||
fitAddon.fit()
|
||||
} catch (e) {
|
||||
console.log('e', e.message)
|
||||
console.error('e', e.message)
|
||||
}
|
||||
}
|
||||
window.addEventListener('resize', resizeScreen)
|
||||
|
||||
@@ -28,7 +28,6 @@ const router = createRouter({
|
||||
})
|
||||
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
console.log(to, from)
|
||||
const loggedIn = await isLoggedIn()
|
||||
// Check if the route requires authentication
|
||||
if (to.meta.requiresAuth && !loggedIn) {
|
||||
|
||||
@@ -8,8 +8,7 @@ export async function isLoggedIn() {
|
||||
|
||||
export const login = async (username, password) => {
|
||||
try {
|
||||
const res = await api.post('/auth/login', { username, password })
|
||||
console.log(res.data)
|
||||
await api.post('/auth/login', { username, password })
|
||||
return true
|
||||
} catch (err) {
|
||||
if (err.response?.status === 401) {
|
||||
|
||||
@@ -38,7 +38,6 @@ class SessionManager {
|
||||
}
|
||||
|
||||
handleHintUpdate(event) {
|
||||
console.log(event)
|
||||
this.hints.value = [...this.hints.value, ...event]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user