From 2c77cd057a77e126045c9f9743fe62cd6d182123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Mon, 31 Jan 2022 10:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmb-select=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E9=80=89=E6=8B=A9bug=20=E4=BC=98=E5=8C=96mb-?= =?UTF-8?q?table=E5=B7=A6=E5=8F=B3=E7=BF=BB=E9=A1=B5=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-boot-ui/src/components/MagicBoot/mb-select.vue | 2 +- magic-boot-ui/src/components/MagicBoot/mb-table.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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() } } }