mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
chore: changed print dialog file name
This commit is contained in:
@@ -11,9 +11,16 @@ import MainContainer from './components/App/MainContainer.vue';
|
||||
import { onMounted } from 'vue';
|
||||
import { useApiStore } from './stores/api.store';
|
||||
|
||||
const originalDcumentTitle = document.title;
|
||||
|
||||
const apiStore = useApiStore();
|
||||
|
||||
onMounted(() => {
|
||||
apiStore.setupAPIData();
|
||||
});
|
||||
|
||||
// Resetting after print dialog is closed
|
||||
window.addEventListener('afterprint', () => {
|
||||
document.title = originalDcumentTitle;
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user