We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c34c59 commit 518cb2aCopy full SHA for 518cb2a
1 file changed
app.vue
@@ -37,20 +37,12 @@ import links from 'assets/links';
37
const projectIndex = useCookie('projectIndex', {
38
default: () => Math.floor(Math.random() * projects.length),
39
})
40
-
41
+projectIndex.value += 1
+projectIndex.value %= projects.length
42
const project = ref(projects[projectIndex.value])
43
-provide('project', project)
44
-onMounted(() => {
45
- projectIndex.value += 1
46
- projectIndex.value %= projects.length
47
- project.value = projects[projectIndex.value]
48
- console.log("MOUNTED") // DBG
49
-})
+//project.value = projects[projectIndex.value]
50
51
-watch(project, (newVal, oldVal) => {
52
- console.log('project changed:', newVal, 'from:', oldVal)
53
-}) // DBG
+provide('project', project)
54
55
const route = useRoute()
56
onMounted(() => {
0 commit comments