zhengyiming
4 小时以前 a7cdbc6cb4b328755dc5d7cfc53426d8ebba1972
src/views/EnterpriseManage/EnterpriseManageList.vue
@@ -101,6 +101,28 @@
  state.loading = false;
});
onMounted(() => {
  if (typeof window !== 'undefined' && window.addEventListener) {
    console.log('onMounted');
    window.addEventListener('visibilitychange', handleFocus);
    // window.addEventListener('focus', handleFocus2);
  }
});
onUnmounted(() => {
  console.log('onUnmounted');
  window.removeEventListener('visibilitychange', handleFocus);
  // window.removeEventListener('focus', handleFocus2);
});
function handleFocus() {
  console.log('handleFocus1');
}
function handleFocus2() {
  console.log('handleFocus2');
}
const {
  getDataSource: getList,
  proTableProps,