From 60aec64a515d145af5d3fa2d90c44a49a4131da2 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:56:08 +0800 Subject: [PATCH] Get the latest version of list file --- src/settings/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/index.ts b/src/settings/index.ts index dff0bb2..862334a 100644 --- a/src/settings/index.ts +++ b/src/settings/index.ts @@ -27,7 +27,7 @@ document.addEventListener('settingsPageLoaded', async () => { const listVersion: HTMLParagraphElement = document.querySelector('#listVersion')!; appVersion.innerHTML = `网站版本:${VERSION_NAME}-${VARIANT}-${COMMIT_HASH} (${VERSION_CODE})`; - getFile('https://cdn.jsdelivr.net/gh/Super12138/AY-Questionnaires-DB/list.json') + getFile(`https://cdn.jsdelivr.net/gh/Super12138/AY-Questionnaires-DB/list.json?${new Date().getTime()}`) .then((response: string) => { const json: QuestionnairesList = JSON.parse(response);