hsy
7 天以前 77b083d347eb8e75eb29a4146238b3f7304489f6
src/views/bpm/model/index.vue
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { ModelCategoryInfo } from '#/api/bpm/model';
import { onActivated, reactive, ref, useTemplateRef, watch } from 'vue';
import { onActivated, onMounted, reactive, ref, useTemplateRef, watch } from 'vue';
import { Page, useVbenModal } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
@@ -76,6 +76,11 @@
}
/** 初始化 */
onMounted(() => {
  getList();
});
/** 激活时刷新(keep-alive 缓存场景下从编辑页返回时触发) */
onActivated(() => {
  getList();
});