|
@@ -153,6 +153,9 @@ export default {
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ sortKeys: {
|
|
|
|
|
+ type: Array
|
|
|
|
|
+ },
|
|
|
isDemand: {
|
|
isDemand: {
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false
|
|
default: false
|
|
@@ -204,6 +207,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ if(this.sortKeys){
|
|
|
|
|
+ this.sortStr = 'soldAt,desc'
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.sortStr = 'createdAt,desc'
|
|
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.init();
|
|
this.init();
|
|
|
});
|
|
});
|