From a8f01d5728fcc241d499cb81745d2b7ddb504307 Mon Sep 17 00:00:00 2001 From: imsyy Date: Tue, 15 Oct 2024 10:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20UID=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=AD=8C=E5=8D=95=E6=AD=8C=E6=9B=B2=E8=8E=B7=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E8=BF=87=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 13 +++++++++---- src/views/List/liked.vue | 3 ++- src/views/List/playlist.vue | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0a555e7..f72f433b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,6 @@ jobs: # 构建 Electron App - name: Build Electron App for Windows run: npm run build:win || true - shell: bash env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # 上传构建产物 @@ -51,7 +50,7 @@ jobs: uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/v') with: - draft: true + draft: false files: dist/*.* env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} @@ -98,7 +97,7 @@ jobs: uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/v') with: - draft: true + draft: false files: dist/*.* env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} @@ -119,6 +118,12 @@ jobs: # 更新 Ubuntu 软件源 - name: Ubuntu Update with sudo run: sudo apt-get update + # 安装依赖 + - name: Install RPM & Pacman + run: | + sudo apt-get install --no-install-recommends -y rpm && + sudo apt-get install --no-install-recommends -y libarchive-tools && + sudo apt-get install --no-install-recommends -y libopenjp2-tools # 复制环境变量文件 - name: Copy .env.example run: | @@ -148,7 +153,7 @@ jobs: uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/v') with: - draft: true + draft: false files: dist/*.* env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/src/views/List/liked.vue b/src/views/List/liked.vue index abe7c5cc..2dad16a8 100644 --- a/src/views/List/liked.vue +++ b/src/views/List/liked.vue @@ -178,6 +178,7 @@ import { debounce, isObject } from "lodash-es"; import { useDataStore, useStatusStore } from "@/stores"; import { openBatchList, openUpdatePlaylist } from "@/utils/modal"; import { formatTimestamp } from "@/utils/time"; +import { isLogin } from "@/utils/auth"; import player from "@/utils/player"; const router = useRouter(); @@ -297,7 +298,7 @@ const getPlaylistData = async (id: number, getList: boolean, refresh: boolean) = return; } // 如果已登录且歌曲数量少于 800,直接加载所有歌曲 - if ((playlistDetailData.value?.count as number) < 800) { + if (isLogin() === 1 && (playlistDetailData.value?.count as number) < 800) { const ids: number[] = detail.privileges.map((song: any) => song.id as number); const result = await songDetail(ids); playlistData.value = formatSongsList(result.songs); diff --git a/src/views/List/playlist.vue b/src/views/List/playlist.vue index ba324a09..ef9bbb0b 100644 --- a/src/views/List/playlist.vue +++ b/src/views/List/playlist.vue @@ -364,7 +364,7 @@ const handleOnlinePlaylist = async (id: number, getList: boolean, refresh: boole return; } // 如果已登录且歌曲数量少于 800,直接加载所有歌曲 - if (isLogin() && (playlistDetailData.value?.count as number) < 800) { + if (isLogin() === 1 && (playlistDetailData.value?.count as number) < 800) { const ids: number[] = detail.privileges.map((song: any) => song.id as number); const result = await songDetail(ids); playlistData.value = formatSongsList(result.songs);