Commit 8842f615 by xinla

子目录退出跳转根目录问题

1 parent 8a942686
...@@ -35,10 +35,7 @@ ...@@ -35,10 +35,7 @@
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />
</template> </template>
<el-dropdown <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
class="avatar-container right-menu-item hover-effect"
trigger="click"
>
<div class="avatar-wrapper"> <div class="avatar-wrapper">
仟微 仟微
<!-- <img :src="avatar" class="user-avatar"> --> <!-- <img :src="avatar" class="user-avatar"> -->
...@@ -99,16 +96,12 @@ export default { ...@@ -99,16 +96,12 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = '/' location.href = process.env.VUE_APP_BASE_URL
}) })
}) })
}, },
goto(type) { goto(type) {
window.open( window.open(type ? 'https://www.yuque.com/linkwechat/help/dsatfs' : 'https://gitee.com/LinkWeChat/link-wechat')
type
? 'https://www.yuque.com/linkwechat/help/dsatfs'
: 'https://gitee.com/LinkWeChat/link-wechat'
)
}, },
goLink(path) { goLink(path) {
if (!isExternal(path)) { if (!isExternal(path)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!