|
@@ -71,11 +71,8 @@ export default {
|
|
created() {},
|
|
created() {},
|
|
methods: {
|
|
methods: {
|
|
...codeitem(['query', 'create', 'update', 'delete']),
|
|
...codeitem(['query', 'create', 'update', 'delete']),
|
|
- async search({ skip = 0, category = this.category, limit = 10, ...info } = {}) {
|
|
|
|
- // ...info, category: this.category
|
|
|
|
- const res = await this.query(({ skip = 0, limit = 10, ...info } = {}));
|
|
|
|
- console.log(res.total);
|
|
|
|
-
|
|
|
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
|
+ const res = await this.query({ ...info, category: this.category });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|