Skip to content

Commit

Permalink
fix: 重新登录没有无法执行任务, Fixed #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtion committed Oct 10, 2023
1 parent 822f815 commit 57449d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "douyu-keep",
"version": "1.0.5",
"version": "1.0.6",
"description": "斗鱼粉丝牌续牌",
"main": "build/main/main.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/jobs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function init(manual = false) {
}
try {
const { type } = await getConfig()
if ((route.params?.from === '/' && type === '自动执行') || manual) {
if (((route.params?.from === '/' || route.params?.from === '/login') && type === '自动执行') || manual) {
await startJob(manual)
await refresh()
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ checkLogin()
<button v-if="!loading" class="text-black hover:underline" @click="dialog = true">
登录斗鱼账号
</button>
<div class="text-black">
<div class="text-black text-sm">
请稍等, 重新登录中...
</div>
</div>
Expand Down

1 comment on commit 57449d5

@KNaiFen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

终于可以用了!感动,之前用那个没更新的旧版本就没成功过

Please sign in to comment.