forked from mirrors/misskey
refactor(frontend): ID生成処理を統一
This commit is contained in:
@@ -57,6 +57,7 @@ import { misskeyApi } from '@/utility/misskey-api.js';
|
||||
import { useStream } from '@/stream.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import MkFolder from '@/components/MkFolder.vue';
|
||||
import { genId } from '@/utility/id.js';
|
||||
|
||||
const connection = markRaw(useStream().useChannel('queueStats'));
|
||||
|
||||
@@ -113,7 +114,7 @@ onMounted(() => {
|
||||
connection.on('stats', onStats);
|
||||
connection.on('statsLog', onStatsLog);
|
||||
connection.send('requestLog', {
|
||||
id: Math.random().toString().substring(2, 10),
|
||||
id: genId(),
|
||||
length: 200,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user