Skip to content

tryOnBeforeUnmount ​

描述 ​

安全的 onBeforeUnmount。

示例 ​

ts
import { tryOnBeforeUnmount } from '@base-web-kits/base-tools-vue';

tryOnBeforeUnmount(() => {
  console.log('before unmount');
});

来源 ​

VueUse