mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-30 12:40:02 +08:00
⚡ Perf: remove talkingdata
This commit is contained in:
@@ -4,11 +4,8 @@ import { RELEASE_URL, RELEASE_URL_BACKUP } from './static'
|
||||
|
||||
export const getLatestVersion = async (): Promise<string> => {
|
||||
try {
|
||||
const { data } = await axios.get(RELEASE_URL)
|
||||
const releases = data as IStringKeyMap[]
|
||||
const normalList = releases.filter(item => !item.name.includes('beta'))
|
||||
const latestRelease = normalList[0]
|
||||
return latestRelease.name
|
||||
const { data: normalList } = await axios.get(RELEASE_URL)
|
||||
return normalList[0].name
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user