Skip to content

Commit 757bbd5

Browse files
committed
fix(problems): 官方已经修复了导航
1 parent b03455a commit 757bbd5

3 files changed

Lines changed: 0 additions & 28 deletions

File tree

src/content/pages/problems/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { findElement, findElementByXPath, isBetaUI } from '@/utils'
99
import { getRoot } from './utils'
1010
import { Portal } from '@/components/Portal'
1111
import Random from './Random'
12-
import { fixBack } from './fixBack'
1312

1413
const App: FC<{ beta?: boolean }> = () => {
1514
const options = useAppSelector(selectOptions)
@@ -20,7 +19,6 @@ const App: FC<{ beta?: boolean }> = () => {
2019
useEffectMount(async state => {
2120
const beta = await isBetaUI()
2221
if (!state.isMount) return
23-
if (beta) fixBack()
2422
setBeta(beta)
2523

2624
//#region 设置「随机一题」

src/content/pages/problems/fixBack.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/options/options.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const defaultOptions = {
1414
problemsPage: {
1515
timer: true,
1616
randomQuestion: true,
17-
fixBackNav: true,
1817
},
1918
contestProblemsPage: {
2019
disableShortcutkey: false,
@@ -48,7 +47,6 @@ export const labelMap: { [key: string]: string } = {
4847
fixRandomQuestion: '修复随机一题按钮',
4948
timer: '计时器',
5049
randomQuestion: '随机一题',
51-
fixBackNav: '修复返回导航',
5250
disableShortcutkey: '禁用快捷键',
5351
languageIcon: '语言图标',
5452
showOldRating: '显示旧分数',

0 commit comments

Comments
 (0)