diff --git a/magic-boot-ui/src/components/MagicBoot/mb-select.vue b/magic-boot-ui/src/components/MagicBoot/mb-select.vue index ec73e59..6c4d924 100644 --- a/magic-boot-ui/src/components/MagicBoot/mb-select.vue +++ b/magic-boot-ui/src/components/MagicBoot/mb-select.vue @@ -101,7 +101,7 @@ export default { }, methods: { async loadData() { - if (this.value) { + if (this.value || this.value == '') { if ((!(this.value instanceof Array) && this.value.toString().indexOf(',') !== -1)) { this.selectValue = this.value.split(',') } else { diff --git a/magic-boot-ui/src/components/MagicBoot/mb-table.vue b/magic-boot-ui/src/components/MagicBoot/mb-table.vue index 92bb500..56fe367 100644 --- a/magic-boot-ui/src/components/MagicBoot/mb-table.vue +++ b/magic-boot-ui/src/components/MagicBoot/mb-table.vue @@ -199,14 +199,15 @@ export default { if (e && e.keyCode == 37) { if(this.listCurrent != 1){ this.listCurrent -= 1 + this.handlerPagination() } } else if (e && e.keyCode == 39) { if(this.listCurrent != parseInt((this.total + this.limit - 1) / this.limit)){ this.listCurrent += 1 + this.handlerPagination() } } } - this.handlerPagination() } } }