shaogen1995 11 місяців тому
батько
коміт
887d083d19

+ 8 - 0
Code/src/pages/C2unityEnd/index.tsx

@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
 import styles from './index.module.scss'
 import { isPc, otherUrl } from '@/utils/http'
 import { useParams } from 'react-router-dom'
+import history from '@/utils/history'
 
 const obj = {
   end: {
@@ -51,6 +52,13 @@ function C2unityEnd() {
     }
   }, [url])
 
+  useEffect(() => {
+    window.unityBack = () => {
+      // 退出
+      history.go(-1)
+    }
+  }, [])
+
   return (
     <div className={styles.C2unityEnd}>
       {!isPc && url ? (

BIN
资源/staticData/home/end.mp4