|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-// const { mapActions: trainchat } = createNamespacedHelpers('trainchat');
|
|
|
+const { mapActions: trainchat } = createNamespacedHelpers('trainchat');
|
|
|
var moment = require('moment');
|
|
|
import _ from 'lodash';
|
|
|
export default {
|
|
@@ -61,13 +61,13 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
- // this.search();
|
|
|
+ this.search();
|
|
|
},
|
|
|
async mounted() {
|
|
|
this.channel();
|
|
|
},
|
|
|
methods: {
|
|
|
- // ...trainchat(['query', 'create']),
|
|
|
+ ...trainchat(['query', 'create']),
|
|
|
async search() {
|
|
|
const res = await this.query({ skip: 0, unit_id: this.liveInfo.id });
|
|
|
if (this.$checkRes(res)) this.$set(this, `list`, res.data);
|