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() // 在mixin_keepAlive => activated初始化 }, methods: { // 初始化 init() { // keepalive重置初始值 this.resetHandle() }, // 返回刷新 regInit() { this.getList() }, @@ -102,7 +110,7 @@ url: 'admin/role/list', params: { pageNum: pageNum, rowCount: pageSize, pageSize: pageSize, keyWord: keyWord }, mockData: {