Skip to content

Commit cf72e56

Browse files
committed
Fix code formatting
1 parent 55451e5 commit cf72e56

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

front/src/components/Loader/CTF.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import ctfnote from 'src/ctfnote';
99
import { defineComponent, watch } from 'vue';
1010
import { 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
1818
export 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
},

0 commit comments

Comments
 (0)