## 获取用户信息

用于开发调试

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

export default () => {
  const login = async () => {
    const { data } = await service.post(
      "https://sit-shgybwg.4dage.com/api/admin/login",
      {
        userName: "admin",
        passWord: encodeStr(Base64.encode("123456")),
      }
    );
    setTokenInfo(data);
    message.success("登陆成功");
  };

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