@aligov/check-user
v1.0.3
Published
intro component
Downloads
20
Readme
检测用户是否唯一
@aligov/check-user
intro component
API
checkUnique
返回: Promise 检测用户是否唯一,若登录用户发生变化,则弹窗提示
getAccountInfo
获取用户信息
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import User from '@aligov/check-user';
class App extends Component {
componentDidMount() {
User.checkUnique().then((info) => console.log(info));
}
render() {
return <div>11222</div>;
}
}
ReactDOM.render(<App />, mountNode);