|
@@ -16,14 +16,14 @@
|
|
|
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
|
|
<el-dropdown-item @click.native="changePassword">修改密码</el-dropdown-item>
|
|
|
<el-dropdown-item divided @click.native="logout">
|
|
|
- <span style="display: block">退出登陆</span>
|
|
|
+ <span style="display: block">退出登录</span>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div> -->
|
|
|
|
|
|
- <!-- <el-dialog title="退出重新登陆" :visible.sync="dialogPassword" width="500px" center>
|
|
|
- <span>密码修改成功,请退出重新登陆。</span>
|
|
|
+ <!-- <el-dialog title="退出重新登录" :visible.sync="dialogPassword" width="500px" center>
|
|
|
+ <span>密码修改成功,请退出重新登录。</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogPassword = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="confirmOut">确 定</el-button>
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
toggleSideBar() {
|
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
|
},
|
|
|
- // 退出登陆
|
|
|
+ // 退出登录
|
|
|
async logout() {
|
|
|
await this.$store.dispatch('user/logout')
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|