|
@@ -18,6 +18,7 @@ import topInfo from '@/layout/public/top.vue';
|
|
|
import detailInfo from '@/layout/live/detailInfo.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: room } = createNamespacedHelpers('room');
|
|
|
+const { mapActions: gensign } = createNamespacedHelpers('gensign');
|
|
|
export default {
|
|
|
name: 'detail',
|
|
|
props: {},
|
|
@@ -31,16 +32,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.id, this.name);
|
|
|
this.searchInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
...room(['query', 'delete', 'update', 'fetch']),
|
|
|
+ ...gensign(['gensignFetch']),
|
|
|
async searchInfo() {
|
|
|
let res = await this.fetch(this.id);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `roomInfo`, res.data);
|
|
|
}
|
|
|
+ res = await this.gensignFetch(this.id);
|
|
|
+ console.log(res);
|
|
|
},
|
|
|
},
|
|
|
computed: {
|