Skip to content

Commit

Permalink
fix: 修复自动答题提交设置保存不了的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Apr 19, 2022
1 parent 493fa96 commit fb9bd39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<div align="center">
<<<<<<< HEAD

=======

>>>>>>> d04b6bc3904ee68004996f965ae8e5b0a776ddec

# OCS 网课助手

> OCS (Online Course Script) 网课刷课脚本,帮助大学生解决网课难题
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineComponent, VNodeProps } from 'vue';
import { ScriptPanelChild } from '../core/define.script';

import { StringUtils } from '../core/utils';
import { AnswererWrapper } from '../core/worker/answer.wrapper.handler';
import { store } from '../script';
import { Terminal } from './Terminal';
import { SearchResults } from './SearchResults';
import { Terminal } from './Terminal';
import { Tooltip } from './Tooltip';
import { StringUtils } from '../core/utils';
import { AnswererWrapper } from '../core/worker/answer.wrapper.handler';

/**
* 创建提示面板
Expand Down Expand Up @@ -78,7 +78,7 @@ export function createWorkerSetting (
];

options = options.map((option) => {
if (option.value === config?.selected) {
if (config?.selected && option.value === config.selected) {
option.selected = true;
}
return option;
Expand Down Expand Up @@ -116,7 +116,7 @@ export function createWorkerSetting (
color: store.setting.answererWrappers.length ? 'green' : 'red'
}}
>
{store.setting.answererWrappers.length
{store.setting.answererWrappers.length
? (
<Tooltip
v-slots={{
Expand Down Expand Up @@ -158,7 +158,7 @@ export function createWorkerSetting (
>
<i class="bi bi-check-circle bi-icon" />
</Tooltip>
)
)
: (
<Tooltip title="题库没有配置, 自动答题功能将不能使用 !">
<i class="bi bi-x-circle bi-icon" />
Expand Down

0 comments on commit fb9bd39

Please sign in to comment.