diff --git a/package.json b/package.json index 8aaca47..5f19075 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vuepress-plugin-meting2", "description": "Wow, such a beautiful html5 music player (with Meting API) support vuepress next", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "type": "module", "scripts": { diff --git a/src/utils/meting.ts b/src/utils/meting.ts index 530ed59..ba3efff 100644 --- a/src/utils/meting.ts +++ b/src/utils/meting.ts @@ -81,12 +81,12 @@ const ParseMeting = ( ): string | undefined => { if (m && m.auto) { m = ParseLink(m.auto); - if (m.server && m.type && m.mid && m.auth) { + if (m.server && m.type && m.mid) { let url = api .replace(":server", m.server) .replace(":type", m.type) .replace(":id", m.mid) - .replace(":auth", m.auth); + .replace(":auth", m.auth ?? 'auth'); return url; } return "";