long
2021-04-08 d8f5a1fcb8632a9fb51cac9d72fb3bacaa41cbc2
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()
    // 在mixin_keepAlive => activated初始化
  },
  methods: {
    // 初始化
    init() {
      // keepalive重置初始值
      this.resetHandle()
    },
    // 返回刷新
    regInit() {
      this.getList()
    },