提交 91c4287e authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 a2c15d58
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<div class="max-width-content"> <div class="max-width-content">
<app-link :item="{ path: '/' }"> <app-link :item="{ path: '/' }">
<div class="logo-box"> <div class="logo-box">
<img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg"> <img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg"> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg" />
</div> </div>
</app-link> </app-link>
<div class="user" v-if="user.id"> <div class="user" v-if="user.id">
<span>{{ user.realname }}</span <span>{{ user.realname || user.nickname }}</span>
><em>|</em><span class="logout" @click="logout">退出</span> <em>|</em><span class="logout" @click="logout">退出</span>
</div> </div>
<div class="login-btn-box" v-else> <div class="login-btn-box" v-else>
<div class="login"><a :href="loginURL">快速登录</a></div> <div class="login"><a :href="loginURL">快速登录</a></div>
...@@ -34,8 +34,7 @@ export default { ...@@ -34,8 +34,7 @@ export default {
AppLink AppLink
}, },
data() { data() {
return { return {}
}
}, },
methods: { methods: {
logout() { logout() {
...@@ -84,13 +83,13 @@ li { ...@@ -84,13 +83,13 @@ li {
.max-width-content { .max-width-content {
display: flex; display: flex;
align-items: center; align-items: center;
.logo-box{ .logo-box {
display: flex; display: flex;
img { img {
height: 55px; height: 55px;
cursor: pointer; cursor: pointer;
display: block; display: block;
&:nth-child(2){ &:nth-child(2) {
margin-left: 20px; margin-left: 20px;
} }
} }
...@@ -140,7 +139,6 @@ li { ...@@ -140,7 +139,6 @@ li {
height: 72px; height: 72px;
display: flex; display: flex;
align-items: center; align-items: center;
} }
} }
</style> </style>
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
@prev="handlePrev" @prev="handlePrev"
@next="handleNext" @next="handleNext"
@uploaded="getApplication" @uploaded="getApplication"
v-if="detail"
> >
<template #aside-append> <template #aside-append>
<!-- <div class="aside-logout" @click="$store.dispatch('logout')"><span>退出登录</span></div> --> <!-- <div class="aside-logout" @click="$store.dispatch('logout')"><span>退出登录</span></div> -->
...@@ -92,7 +91,7 @@ export default { ...@@ -92,7 +91,7 @@ export default {
}, },
handlePageChange(value) { handlePageChange(value) {
this.currentActive = value this.currentActive = value
this.$router.push({ path: this.$route.path, query: { active: value } }).catch(() => {}) this.$router.push({ path: this.$route.path, query: { active: value } })
console.log('页面切换了', value) console.log('页面切换了', value)
}, },
handleSuccess(data) { handleSuccess(data) {
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
@back="$router.push('/my/account')" @back="$router.push('/my/account')"
@prev="handlePrev" @prev="handlePrev"
@next="handleNext" @next="handleNext"
v-if="detail"
> >
<template #aside-append> <template #aside-append>
<div class="aside-preview" @click="dialogVisible = true" v-if="visible">预览全部</div> <div class="aside-preview" @click="dialogVisible = true" v-if="visible">预览全部</div>
...@@ -94,7 +93,7 @@ export default { ...@@ -94,7 +93,7 @@ export default {
}, },
handlePageChange(value) { handlePageChange(value) {
this.currentActive = value this.currentActive = value
this.$router.push({ path: this.$route.path, query: { active: value } }).catch(() => {}) this.$router.push({ path: this.$route.path, query: { active: value } })
}, },
handleTabChange(value) { handleTabChange(value) {
this.tabActive = value this.tabActive = value
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
handlePageChange(value) { handlePageChange(value) {
this.currentActive = value this.currentActive = value
this.$router.push({ path: this.$route.path, query: { active: value } }).catch(() => {}) this.$router.push({ path: this.$route.path, query: { active: value } })
console.log('页面切换了', value) console.log('页面切换了', value)
}, },
handleSuccess(data) { handleSuccess(data) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论