|
@@ -125,6 +125,7 @@ export default {
|
|
...goods(['delete', 'fetch', 'update', 'create']),
|
|
...goods(['delete', 'fetch', 'update', 'create']),
|
|
...methodsUtil,
|
|
...methodsUtil,
|
|
async search({ skip = 0, limit = this.limit, ...others } = {}) {
|
|
async search({ skip = 0, limit = this.limit, ...others } = {}) {
|
|
|
|
+ console.log(this.user);
|
|
let query = { skip, limit, ...others };
|
|
let query = { skip, limit, ...others };
|
|
if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
|
|
if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
|
|
const res = await this.getGoods(query);
|
|
const res = await this.getGoods(query);
|
|
@@ -216,6 +217,9 @@ export default {
|
|
this.$router.push({ path: `/selfShop/spec/${data._id}` });
|
|
this.$router.push({ path: `/selfShop/spec/${data._id}` });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['user']),
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|