0.0.21 • Published 4 years ago

@txdfe/uiless-user-profile v0.0.21

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 years ago
  • 依赖变量 第一种方式:页面统一配置依赖

        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', 
        }}
      />
  • 参数列表
参数类型可选值默认值说明
  • 使用