|
@@ -33,6 +33,12 @@
|
|
</template>
|
|
</template>
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
<el-menu-item index="4">
|
|
<el-menu-item index="4">
|
|
|
|
+ <template slot="title">
|
|
|
|
+ <i class="el-icon-circle-close"></i>
|
|
|
|
+ <span>返回对接会</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-menu-item>
|
|
|
|
+ <el-menu-item index="5">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<i class="el-icon-circle-close"></i>
|
|
<i class="el-icon-circle-close"></i>
|
|
<span>退出登录</span>
|
|
<span>退出登录</span>
|
|
@@ -49,6 +55,7 @@
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: login } = createNamespacedHelpers('login');
|
|
const { mapActions: login } = createNamespacedHelpers('login');
|
|
const { mapActions: personalChat } = createNamespacedHelpers('personalchat');
|
|
const { mapActions: personalChat } = createNamespacedHelpers('personalchat');
|
|
|
|
+const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
export default {
|
|
export default {
|
|
name: 'menuInfo',
|
|
name: 'menuInfo',
|
|
props: {},
|
|
props: {},
|
|
@@ -56,7 +63,7 @@ export default {
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
topUrl: require('@/assets/live/square_big.png'),
|
|
topUrl: require('@/assets/live/square_big.png'),
|
|
- num: '1',
|
|
|
|
|
|
+ num: 1,
|
|
haveMsg: false,
|
|
haveMsg: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -66,15 +73,19 @@ export default {
|
|
mounted() {},
|
|
mounted() {},
|
|
methods: {
|
|
methods: {
|
|
...login({ logout: 'logout', transactiondtetle: 'delete' }),
|
|
...login({ logout: 'logout', transactiondtetle: 'delete' }),
|
|
|
|
+ ...dock(['fetch', 'query', 'delete', 'update', 'fetch']),
|
|
// 菜单跳转
|
|
// 菜单跳转
|
|
- selectMenu(key) {
|
|
|
|
- if (key == '4') {
|
|
|
|
|
|
+ async selectMenu(key) {
|
|
|
|
+ if (key == '5') {
|
|
this.logout();
|
|
this.logout();
|
|
this.$message({
|
|
this.$message({
|
|
message: '退出登录成功',
|
|
message: '退出登录成功',
|
|
type: 'success',
|
|
type: 'success',
|
|
});
|
|
});
|
|
this.$router.push({ path: '/newlogin' });
|
|
this.$router.push({ path: '/newlogin' });
|
|
|
|
+ } else if (key == '4') {
|
|
|
|
+ let res = await this.fetch(this.user.remark);
|
|
|
|
+ this.$router.push({ path: '/hall/direct', query: { id: res.data.id, title: res.data.title } });
|
|
} else {
|
|
} else {
|
|
this.$router.push({ path: '/vipCenter/index', query: { num: key } });
|
|
this.$router.push({ path: '/vipCenter/index', query: { num: key } });
|
|
}
|
|
}
|