|
@@ -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 ? (
|