common-profile
v1.0.9
Published
Common profile
Downloads
113
Readme
Common profile组件
安装依赖
npm install common-profile
开始使用
main.js文件中引入并注册
import SelfProfile from 'common-profile';
Vue.use(SelfProfile);
Input 组件
<Profile :token="token" :url="url" @logout="logout" @successupdate="successupdate"></Profile>
token: 请求头中携带的token
url: 请求的url
@logout: 退出登录
@successupdate: 编辑成功回调