mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-29 20:29:40 +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(() => {
|
||||
index.value = Math.floor(Math.random() * taglines.length);
|
||||
setInterval(() => {
|
||||
index.value = (index.value + 1) % taglines.length;
|
||||
}, 5_000);
|
||||
|
Reference in New Issue
Block a user