From 96aeb2a232d85306ced2061f024a2ff491a92ff7 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 25 七月 2024 17:47:12 +0800 Subject: [PATCH] fix bug --- mixin/mixin.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mixin/mixin.js b/mixin/mixin.js index 8cf5ae0..9da88ef 100644 --- a/mixin/mixin.js +++ b/mixin/mixin.js @@ -258,9 +258,9 @@ } return true }, - async refreshList() { + async refreshList(type = 'get') { this.page.current = 1 - await this.getList() + await this.getList(type) }, async getList(type = 'get') { if (this.listApi) { @@ -278,7 +278,7 @@ } }) if (data) { - if (this.page.current == 1) { + if (this.page.current === 1) { this.list = data.records || [] } else { //根据id去重正常 -- Gitblit v1.9.3