From 7b94bf127f981d06763e3ec106f944e3fa09f3a4 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期日, 07 七月 2024 19:38:45 +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