|
@@ -21,6 +21,16 @@ function A0base() {
|
|
|
|
|
|
|
|
const [currentBase, setCurrentBase] = useState(0)
|
|
const [currentBase, setCurrentBase] = useState(0)
|
|
|
|
|
|
|
|
|
|
+ // 从二三单元返回
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ const urlAll = window.location.href
|
|
|
|
|
+
|
|
|
|
|
+ if (urlAll.includes('?t=')) {
|
|
|
|
|
+ const urlT = urlAll.split('?t=')[1]
|
|
|
|
|
+ if (urlT) setCurrentBase(Number(urlT))
|
|
|
|
|
+ }
|
|
|
|
|
+ }, [])
|
|
|
|
|
+
|
|
|
const [isOpenInteract, setIsOpenInteract] = useState(false)
|
|
const [isOpenInteract, setIsOpenInteract] = useState(false)
|
|
|
|
|
|
|
|
const goto = (e: React.MouseEvent, path: string) => {
|
|
const goto = (e: React.MouseEvent, path: string) => {
|