|
@@ -1,11 +1,14 @@
|
|
|
-import { Link, useSearchParams } from "react-router-dom";
|
|
|
|
|
|
|
+import {Link, useNavigate, useSearchParams} from "react-router-dom";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
|
import { Button } from "antd";
|
|
import { Button } from "antd";
|
|
|
|
|
|
|
|
function Index() {
|
|
function Index() {
|
|
|
const [searchParams] = useSearchParams();
|
|
const [searchParams] = useSearchParams();
|
|
|
- const [value, setValue] = useState<string>('')
|
|
|
|
|
- console.log(searchParams);
|
|
|
|
|
|
|
+ const [value, setValue] = useState<string>('');
|
|
|
|
|
+ const navigate = useNavigate();
|
|
|
|
|
+ const toCall = ()=>{
|
|
|
|
|
+ navigate('/tonghua');
|
|
|
|
|
+ }
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
setValue(searchParams.get('value') as string)
|
|
setValue(searchParams.get('value') as string)
|
|
|
}, []);
|
|
}, []);
|
|
@@ -19,15 +22,9 @@ function Index() {
|
|
|
</div>
|
|
</div>
|
|
|
<img className={'h-900px w-1500px'} alt={'图片'} src={'/流程.png'} />
|
|
<img className={'h-900px w-1500px'} alt={'图片'} src={'/流程.png'} />
|
|
|
<div>
|
|
<div>
|
|
|
- <Button type={'primary'} className={'float-end'}>
|
|
|
|
|
|
|
+ <Button type={'primary'} className={'float-end mr-100px'} onClick={toCall}>
|
|
|
在线呼叫
|
|
在线呼叫
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Link
|
|
|
|
|
- to={`/tonghua`}
|
|
|
|
|
- className=""
|
|
|
|
|
- >
|
|
|
|
|
- <span className="">11223</span>
|
|
|
|
|
- </Link>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|