From c2b77fbdec9fbdd002b377cbe583102f30c67be1 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期三, 10 七月 2024 15:55:22 +0800 Subject: [PATCH] 1 --- mixin/mixin.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/mixin/mixin.js b/mixin/mixin.js index 7459a6f..5551356 100644 --- a/mixin/mixin.js +++ b/mixin/mixin.js @@ -13,7 +13,7 @@ return state.hasLogin || false }, selftype: state => { - return state.type || '' + return (state.currentInfo || {}).type || '' }, currentInfo: state => { return state.currentInfo || {} @@ -255,6 +255,10 @@ } return true }, + async refreshList(){ + this.page.current = 1 + await this.getList() + }, async getList() { if (this.listApi) { this.$message.showLoading() -- Gitblit v1.9.3