This commit is contained in:
syuilo
2022-06-24 00:47:55 +09:00
parent 5ee53c222b
commit c9e9129373
2 changed files with 72 additions and 68 deletions

View File

@@ -3,6 +3,7 @@ import { i18n } from '@/i18n';
import * as os from '@/os';
export function useLeaveGuard(enabled: Ref<boolean>) {
/* TODO
const setLeaveGuard = inject('setLeaveGuard');
if (setLeaveGuard) {
@@ -28,6 +29,7 @@ export function useLeaveGuard(enabled: Ref<boolean>) {
return !canceled;
});
}
*/
/*
function onBeforeLeave(ev: BeforeUnloadEvent) {