From 952138742aa158e086dccbb5a0460cde3b2b3f8b Mon Sep 17 00:00:00 2001 From: Xmader Date: Mon, 11 Nov 2019 21:44:47 -0500 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index 6e413c8..2a07841 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -2,6 +2,8 @@ export const getIndexPath = (id: number) => { const idStr = String(id) // 获取最后三位,倒序排列 + // x, y, z are the reversed last digits of the score id. Example: id 123456789, x = 9, y = 8, z = 7 + // https://developers.musescore.com/#/file-urls // "5449062" -> ["2", "6", "0"] const indexN = idStr.split("").reverse().slice(0, 3) return indexN.join("/")