liweilong
2020-12-28 3f3c98956ea6da68af9610fa2237dd9ec91e6757
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()
    },