mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 18:19:42 +02:00
update logic
This commit is contained in:
@@ -25,8 +25,10 @@ const taglines: Taglines[] = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let index = ref(Math.floor(Math.random() * taglines.length));
|
const index: Ref<number> = ref(0);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
index.value = Math.floor(Math.random() * taglines.length);
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
index.value = (index.value + 1) % taglines.length;
|
index.value = (index.value + 1) % taglines.length;
|
||||||
}, 5_000);
|
}, 5_000);
|
||||||
|
Reference in New Issue
Block a user