@txdfe/uiless-user-profile

0.0.21 • Public • Published
  • 依赖变量 第一种方式:页面统一配置依赖

        window.UILessConfig = {
            appId: ctx.app.config.appId, // current appId
            orgId: ctx.app.config.orgId, // current orgId
            accessToken: token, // current access token
            host: 'http://uiless.teambition.aone.alibaba.net', // host
        };
    

    对接入了tb导航的页面,appId,orgId,accessToken都可以在页面上找到,host需要后端增加一个配置写到页面上

    第二种方式:以props形式传入依赖

      <Component
        uiless_config={{
          appId: 'xxx', // current appId
          orgId: 'xxx', // current orgId
          accessToken: 'xxx', // current access token
          host: 'http://uiless.teambition.aone.alibaba.net', 
        }}
      />
    
  • 参数列表

参数 类型 可选值 默认值 说明
  • 使用
      
    

Readme

Keywords

none

Package Sidebar

Install

npm i @txdfe/uiless-user-profile

Weekly Downloads

0

Version

0.0.21

License

MIT

Unpacked Size

6.1 MB

Total Files

49

Last publish

Collaborators

  • jiangyuanzhi
  • zhzxang
  • purple-force
  • zuoqi
  • tod.zx
  • 2ehao
  • bowei.jbw
  • teamaxy
  • cyris
  • saviio