File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
front/src/components/Loader Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ import ctfnote from 'src/ctfnote';
99import { defineComponent , watch } from ' vue' ;
1010import { useRoute } from ' vue-router' ;
1111
12- const setTitle = (ctf : {title: string } | null ) => {
12+ const setTitle = (ctf : { title: string } | null ) => {
1313 if (ctf ) {
1414 document .title = ` ${ctf .title } | CTFNote ` ;
1515 }
16- }
16+ };
1717
1818export default defineComponent ({
1919 props: {
@@ -29,7 +29,10 @@ export default defineComponent({
2929 watch (ctf , (ctf ) => setTitle (ctf ));
3030
3131 // Watch for Vue route changes (required to change the title when the page was already mounted)
32- watch (() => route .fullPath , () => setTitle (ctf .value ));
32+ watch (
33+ () => route .fullPath ,
34+ () => setTitle (ctf .value ),
35+ );
3336
3437 return { ctf };
3538 },
You can’t perform that action at this time.
0 commit comments