22 lines
530 B
JavaScript
22 lines
530 B
JavaScript
"use client";
|
|
|
|
import React, { useState } from "react";
|
|
import { Button, Input } from "antd-mobile";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
export default function WechatTest() {
|
|
const router = useRouter();
|
|
|
|
const [url, setUrl] = useState("");
|
|
return (
|
|
<section className="flex flex-1 flex-col p-4">
|
|
<Input
|
|
className="mb-2 input border-primary"
|
|
value={url}
|
|
onChange={(val) => setUrl(val)}
|
|
/>
|
|
<Button onClick={() => router.push(url)}>跳转</Button>
|
|
</section>
|
|
);
|
|
}
|