You've already forked bilibili-subtitle
fix
This commit is contained in:
@@ -408,12 +408,12 @@ const Settings = () => {
|
|||||||
<div className='flex justify-center gap-5'>
|
<div className='flex justify-center gap-5'>
|
||||||
<button className='btn btn-primary btn-sm' onClick={onSave}>保存</button>
|
<button className='btn btn-primary btn-sm' onClick={onSave}>保存</button>
|
||||||
<button className='btn btn-sm' onClick={onCancel}>取消</button>
|
<button className='btn btn-sm' onClick={onCancel}>取消</button>
|
||||||
<button className='btn btn-sm' onClick={() => {
|
{/* <button className='btn btn-sm' onClick={() => {
|
||||||
dispatch(setTempData({
|
dispatch(setTempData({
|
||||||
reviewed: undefined,
|
reviewed: undefined,
|
||||||
// reviewActions: 0
|
// reviewActions: 0
|
||||||
}))
|
}))
|
||||||
}}>重置</button>
|
}}>重置</button> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -45,7 +45,7 @@ const useSubtitleService = () => {
|
|||||||
|
|
||||||
//如果reviewActions达到15次,则设置reviewed为false
|
//如果reviewActions达到15次,则设置reviewed为false
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (reviewed === undefined && reviewActions && reviewActions >= 3) {
|
if (reviewed === undefined && reviewActions && reviewActions >= 15) {
|
||||||
dispatch(setTempData({
|
dispatch(setTempData({
|
||||||
reviewed: false
|
reviewed: false
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user