From d8f5a1fcb8632a9fb51cac9d72fb3bacaa41cbc2 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期四, 08 四月 2021 15:57:49 +0800 Subject: [PATCH] 1.添加mode提示、2.mock模式侧边栏不限制权限全显示 --- src/pages/system/role.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/pages/system/role.vue b/src/pages/system/role.vue index 4d29728..4e6e92e 100644 --- a/src/pages/system/role.vue +++ b/src/pages/system/role.vue @@ -9,6 +9,7 @@ clearable size="small" style="width: 240px" + maxlength="50" @keyup.enter.native="reGetList" /> </el-form-item> @@ -70,8 +71,10 @@ <script> +import mixin_keepAlive from '@/mixins/keepAlive.js' // 椤甸潰缂撳瓨 export default { name: 'Role', + mixins: [mixin_keepAlive], data() { return { showSearch: true, // 鏄惁鏄剧ず鎼滅储鍖� @@ -87,11 +90,17 @@ } }, mounted() { - this.init() + // 鍦╩ixin_keepAlive => activated鍒濆鍖� }, methods: { // 鍒濆鍖� init() { + // keepalive閲嶇疆鍒濆鍊� + this.resetHandle() + }, + + // 杩斿洖鍒锋柊 + regInit() { this.getList() }, -- Gitblit v1.8.0