Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Sep 12, 2024
1 parent 2ce656a commit 997a6c5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def run(self) -> None:
if len(self.tasks) > 0:
# 找到时间最近的一次单个任务
self.task = self.tasks[0]
logger.debug(f"当前任务: {str(self.task)}")
else:
self.task = None
if self.task is not None and datetime.now() < self.task.time:
Expand All @@ -141,7 +142,6 @@ def run(self) -> None:
self.free_clue = None
if self.credit_fight is not None and self.credit_fight != get_server_weekday():
self.credit_fight = None
logger.debug(self.credit_fight)
self.todo_task = False
self.collect_notification = False
self.planned = False
Expand Down
44 changes: 37 additions & 7 deletions ui/src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ const scene_name = {
LOGIN_MAIN_NOENTRY: '登录页面(无按钮入口)',
OPERATOR_ONGOING: '代理作战'
}
const onSelectionChange = (newValue) => {
if (newValue === '夜神') {
simulator.value.index = '-1'
} else {
simulator.value.index = '0'
}
}
</script>

<template>
Expand Down Expand Up @@ -188,7 +196,11 @@ const scene_name = {
</n-radio-group>
</n-form-item>
<n-form-item label="模拟器">
<n-select v-model:value="simulator.name" :options="simulator_types" />
<n-select
v-model:value="simulator.name"
:options="simulator_types"
@update:value="onSelectionChange"
/>
</n-form-item>
<n-form-item v-if="simulator.name">
<template #label>
Expand Down Expand Up @@ -568,15 +580,27 @@ const scene_name = {
</n-form>
</n-card>
</div>
<div><SKLand /></div>
<div><Depotswitch /></div>
<div><DailyMission /></div>
<div><email /></div>
<div>
<SKLand />
</div>
<div>
<Depotswitch />
</div>
<div>
<DailyMission />
</div>
<div>
<email />
</div>
</div>

<div class="grid-right">
<div><clue /></div>
<div><Recruit /></div>
<div>
<clue />
</div>
<div>
<Recruit />
</div>
<div><maa-weekly /></div>
<div><maa-weekly-new /></div>
<div><maa-basic /></div>
Expand Down Expand Up @@ -613,6 +637,7 @@ const scene_name = {
&:nth-child(1) {
width: 130px;
}
&:nth-child(3) {
padding-left: 12px;
width: 120px;
Expand Down Expand Up @@ -689,18 +714,21 @@ h4 {
width: 100%;
max-width: 600px;
}
.grid-left {
display: grid;
row-gap: 10px;
grid-template-columns: 100%;
}
.grid-right {
display: grid;
row-gap: 10px;
grid-template-columns: 100%;
margin-top: 10px;
}
}
/*双栏 大于1400的内容 */
@media (min-width: 1400px) {
.grid-two {
Expand All @@ -709,12 +737,14 @@ h4 {
align-items: flex-start;
gap: 5px;
}
.grid-left {
display: grid;
gap: 5px;
grid-template-columns: 100%;
max-width: 600px;
}
.grid-right {
display: grid;
gap: 5px;
Expand Down

0 comments on commit 997a6c5

Please sign in to comment.