diff --git a/README.md b/README.md index 1d7b5ed..a5746ce 100644 --- a/README.md +++ b/README.md @@ -160,10 +160,11 @@ npm run build 容器运行成功后即可在本地通过访问 -3. 软件安装包 +## 软件安装包 - 可前往[Releases](https://github.com/LOG1997/log-lottery/releases)下载。 - 目前只支持windows平台使用,跨平台安装包暂不支持,如有需要请自行编译,参照[贡献文档](https://github.com/LOG1997/log-lottery/blob/dev/.github/CONTRIBUTING.md) +可前往[Releases](https://github.com/LOG1997/log-lottery/releases)下载。 + +目前只支持windows平台使用,跨平台安装包暂不支持,如有需要请自行编译,参照[贡献文档](https://github.com/LOG1997/log-lottery/blob/main/.github/CONTRIBUTING.md) ## 支持项目 diff --git a/package.json b/package.json index 020590b..700bd84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "log-lottery", "private": true, - "version": "0.5.3", + "version": "0.5.4", "type": "module", "license": "MIT", "scripts": { diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 5a56935..cc5e089 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -77,7 +77,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app" -version = "0.5.2" +version = "0.5.4" dependencies = [ "log", "serde", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 3f885aa..477b4e1 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "app" -version = "0.5.3" +version = "0.5.4" description = "A Tauri App" authors = ["you"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f8a207a..d12e962 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "log-lottery", - "version": "0.5.3", + "version": "0.5.4", "identifier": "to2026.xyz", "build": { "frontendDist": "../dist", diff --git a/src/layout/useMounted.ts b/src/layout/useMounted.ts index 00307a9..5bf36b2 100644 --- a/src/layout/useMounted.ts +++ b/src/layout/useMounted.ts @@ -12,7 +12,7 @@ export function useMounted(tipDialog: Ref) { const prizeConfig = useStore().prizeConfig const system = useStore().system const { getTheme: localTheme } = storeToRefs(globalConfig) - const { getPrizeConfig: prizeList } = storeToRefs(prizeConfig) + const { getPrizeConfig: prizeList, getTemporaryPrize: temporaryPrize } = storeToRefs(prizeConfig) const tipDesc = ref('') const { t } = useI18n() // 设置当前奖列表 @@ -20,6 +20,10 @@ export function useMounted(tipDialog: Ref) { if (prizeList.value.length <= 0) { return } + if (temporaryPrize.value && temporaryPrize.value.isShow) { + prizeConfig.setCurrentPrize(temporaryPrize.value) + return + } for (let i = 0; i < prizeList.value.length; i++) { if (!prizeList.value[i].isUsed) { prizeConfig.setCurrentPrize(prizeList.value[i]) diff --git a/src/views/Home/components/PrizeList/index.vue b/src/views/Home/components/PrizeList/index.vue index b727b24..c0a1acc 100644 --- a/src/views/Home/components/PrizeList/index.vue +++ b/src/views/Home/components/PrizeList/index.vue @@ -1,8 +1,5 @@