From 3f3c98956ea6da68af9610fa2237dd9ec91e6757 Mon Sep 17 00:00:00 2001
From: liweilong <515897141@qq.com>
Date: 星期一, 28 十二月 2020 18:33:44 +0800
Subject: [PATCH] 角色管理使用keepalive

---
 src/pages/system/role.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/pages/system/role.vue b/src/pages/system/role.vue
index 4d29728..b3fdecc 100644
--- a/src/pages/system/role.vue
+++ b/src/pages/system/role.vue
@@ -70,8 +70,10 @@
 
 <script>
 
+import mixin_keepAlive from '@/mixins/keepAlive.js' // 椤甸潰缂撳瓨
 export default {
   name: 'Role',
+  mixins: [mixin_keepAlive],
   data() {
     return {
       showSearch: true, // 鏄惁鏄剧ず鎼滅储鍖�
@@ -87,11 +89,17 @@
     }
   },
   mounted() {
-    this.init()
+    // 鍦╩ixin_keepAlive => activated鍒濆鍖�
   },
   methods: {
     // 鍒濆鍖�
     init() {
+      // keepalive閲嶇疆鍒濆鍊�
+      this.resetHandle()
+    },
+
+    // 杩斿洖鍒锋柊
+    regInit() {
       this.getList()
     },
 

--
Gitblit v1.8.0