|
@@ -21,7 +21,6 @@
|
|
|
<script>
|
|
|
const _ = require('lodash');
|
|
|
import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions } = createNamespacedHelpers('todo');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -38,18 +37,8 @@ export default {
|
|
|
data: {},
|
|
|
};
|
|
|
},
|
|
|
- async created() {
|
|
|
- await this.search();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
|
- async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- let res = await this.query({ skip, limit, ...info });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, 'data', res.data);
|
|
|
- }
|
|
|
- },
|
|
|
- },
|
|
|
+ async created() {},
|
|
|
+ methods: {},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
},
|