s-sc-cb.vue
1,182
| Install | |
|---|---|
npm install s-sc-cb.vue |
|
| Latest Version: | 0.4.1 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Dec 15, 2023 |
| Links: | npm |
Maintainer: jianglinghao
SScCb 双创登录中转页
双创登录定制中转页
示例
基本用法
<template>
<s-sc-cb @success="onSuccess" @error="onError"></s-sc-cb>
</template>
<script>
export default {
methods: {
onSuccess({
Authorization,
UserName,
UserId,
TenantName,
}) {
console.log({
Authorization,
UserName,
UserId,
TenantName,
});
},
onError(error) {
console.error(error && error.message);
},
},
};
</script>
API
Props/Attrs
| Prop/Attr | Type | Options | Default | Description |
|---|---|---|---|---|
| domainName | string | 'low-code' |
配置登录应用信息 | |
| loginType | string | 'Urs' |
目前支持一种:Urs(使用Urs账号登录) | |
| requestPath | string | '/proxy/nuims/gateway/nuims/nuims' |
配置接口请求基础路径 |
Events
@success
登录成功后触发
| Param | Type | Description |
|---|---|---|
| $event.Authorization | string | 登录成功后为用户颁发的 AccessToken |
| $event.UserId | string | 用户 ID |
| $event.UserName | string | 用户名 |
| $event.TenantName | string | 租户信息 |
@error
登录失败后触发
| Param | Type | Description |
|---|---|---|
| $event.message | string | 登录失败的信息 |
Related Packages
iobroker.vis-materialdesign
Material Design Widgets based on Google material components web library
6,604
59
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.1 | ^2.6.10 | MIT | |
| 0.4.0 | ^2.6.10 | MIT | |
| 0.3.0 | ^2.6.10 | MIT | |
| 0.2.9 | ^2.6.10 | MIT | |
| 0.2.8 | ^2.6.10 | MIT | |
| 0.2.7 | ^2.6.10 | MIT | |
| 0.2.6 | ^2.6.10 | MIT | |
| 0.2.5 | ^2.6.10 | MIT | |
| 0.2.4 | ^2.6.10 | MIT | |
| 0.2.3 | ^2.6.10 | MIT | |
| 0.2.2 | ^2.6.10 | MIT | |
| 0.2.1 | ^2.6.10 | MIT | |
| 0.2.0 | ^2.6.10 | MIT | |
| 0.1.1 | ^2.6.10 | MIT | |
| 0.1.0 | ^2.6.10 | MIT |