Merge branch 'main-44133d0c9' into pms-dev
This commit is contained in:
commit
33f38f42cc
|
@ -63,7 +63,11 @@ const vueFilePathPlugin = (outputFilePath) => {
|
|||
return html.replace(
|
||||
'</body>',
|
||||
`<script>
|
||||
const isWindowActive = () => !document.hidden;
|
||||
window.addEventListener('beforeunload', function () {
|
||||
if (!isWindowActive()) {
|
||||
return;
|
||||
}
|
||||
fetch('/generate-path-name-map');
|
||||
});
|
||||
</script></body>`
|
||||
|
|
Loading…
Reference in New Issue