mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-31 23:18:32 +08:00
fix: 消息页面ui重构
This commit is contained in:
@@ -27,15 +27,11 @@
|
||||
>
|
||||
<i class="fas fa-user-minus"></i>
|
||||
取消关注
|
||||
</div>
|
||||
<div
|
||||
v-if="!isMine"
|
||||
class="profile-page-header-subscribe-button"
|
||||
@click="sendMessage"
|
||||
>
|
||||
<i class="fas fa-paper-plane"></i>
|
||||
发私信
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!isMine" class="profile-page-header-subscribe-button" @click="sendMessage">
|
||||
<i class="fas fa-paper-plane"></i>
|
||||
发私信
|
||||
</div>
|
||||
<LevelProgress
|
||||
:exp="levelInfo.exp"
|
||||
:current-level="levelInfo.currentLevel"
|
||||
@@ -558,14 +554,14 @@ const sendMessage = async () => {
|
||||
recipientId: user.value.id,
|
||||
}),
|
||||
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
|
||||
});
|
||||
const result = await response.json();
|
||||
router.push(`/messages/${result.conversationId}`);
|
||||
})
|
||||
const result = await response.json()
|
||||
router.push(`/message-box/${result.conversationId}`)
|
||||
} catch (e) {
|
||||
toast.error('无法发起私信');
|
||||
console.error(e);
|
||||
toast.error('无法发起私信')
|
||||
console.error(e)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const gotoTag = (tag) => {
|
||||
const value = encodeURIComponent(tag.id ?? tag.name)
|
||||
|
||||
Reference in New Issue
Block a user