mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: refactor coding style
This commit is contained in:
@@ -41,16 +41,18 @@ const avatarImg = ref<HTMLImageElement>() as Ref<HTMLImageElement>
|
||||
const avatarShadow = ref<HTMLImageElement>() as Ref<HTMLImageElement>
|
||||
|
||||
watch(
|
||||
() => showNotificationsPop,
|
||||
() => {
|
||||
getUnreadMessageCount()
|
||||
showNotificationsPop,
|
||||
(newVal) => {
|
||||
if (!newVal)
|
||||
getUnreadMessageCount()
|
||||
},
|
||||
)
|
||||
|
||||
watch(
|
||||
() => showMomentsPop,
|
||||
() => {
|
||||
getNewMomentsCount()
|
||||
showMomentsPop,
|
||||
(newVal) => {
|
||||
if (!newVal)
|
||||
getNewMomentsCount()
|
||||
},
|
||||
)
|
||||
|
||||
@@ -110,7 +112,9 @@ async function getUserInfo() {
|
||||
Object.assign(userInfo, res.data)
|
||||
}
|
||||
// Account not logged in
|
||||
else if (res.code === -101) { isLogin.value = false }
|
||||
else if (res.code === -101) {
|
||||
isLogin.value = false
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
isLogin.value = false
|
||||
|
||||
@@ -175,7 +175,7 @@ function jumpToLoginPage() {
|
||||
</template>
|
||||
|
||||
<!-- skeleton -->
|
||||
<template v-for="item in (settings.recommendationMode === 'web' ? 30 : 30)" :key="item">
|
||||
<template v-for="item in 30" :key="item">
|
||||
<div
|
||||
v-if="isLoading"
|
||||
mb-8 pointer-events-none select-none
|
||||
|
||||
Reference in New Issue
Block a user