mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 10:14:16 +02:00
refactor(frontend): ID生成処理を統一
This commit is contained in:
@@ -57,6 +57,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, onUnmounted, ref, useTemplateRef } from 'vue';
|
||||
import { genId } from '@/utility/id.js';
|
||||
|
||||
const particles = ref<{
|
||||
id: string,
|
||||
@@ -86,7 +87,7 @@ onMounted(() => {
|
||||
const y = (Math.random() * (height.value - 64));
|
||||
const sizeFactor = Math.random();
|
||||
const particle = {
|
||||
id: Math.random().toString(),
|
||||
id: genId(),
|
||||
x,
|
||||
y,
|
||||
size: 0.2 + ((sizeFactor / 10) * 3),
|
||||
|
||||
Reference in New Issue
Block a user