## 获取用户信息

用于开发调试

```tsx
import React, { useState } from "react";
import { Button, Input, message } from "antd";
import { Base64 } from "@dage/utils";
import { encodeStr, setTokenInfo } from "@dage/pc-components";
import { request } from "@dage/service";
import "../configure";

export default () => {
  const login = async () => {
    const data = await request("/api/admin/login", {
      userName: "admin",
      passWord: encodeStr(Base64.encode("123456")),
    });
    setTokenInfo(data);
    message.success("登陆成功");
  };

  return (
    <>
      <Button onClick={login}>登录</Button>
    </>
  );
};
```
