mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-24 15:10:48 +08:00
feat: add gotoprofile
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<i class="fas fa-caret-down dropdown-icon"></i>
|
||||
<div v-if="dropdownVisible" class="dropdown-menu">
|
||||
<div class="dropdown-item" @click="goToSettings">设置</div>
|
||||
<div class="dropdown-item" @click="goToProfile">个人主页</div>
|
||||
<div class="dropdown-item" @click="goToLogout">退出</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,6 +101,10 @@ export default {
|
||||
this.$router.push('/settings')
|
||||
this.dropdownVisible = false
|
||||
},
|
||||
goToProfile() {
|
||||
this.$router.push(`/profile/`)
|
||||
this.dropdownVisible = false
|
||||
},
|
||||
goToSignup() {
|
||||
this.$router.push('/signup')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user