uac-token-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

sdk使用说明:

下载sdk前端插件:
      npm i uac-token-sdk
 使用插件方式
   使用JumpAddress方法
   参数说明:JumpAddress(认证系统前端地址,认证系统后端地址)
<script setup lang="ts">
import lib from 'uac-token-sdk'
const getMethod =()=>{
    // 创建SDK实例  
    const DetermineToken = new lib.DetermineToken()
    DetermineToken.JumpAddress('http://10.89.12.200:18888/#','http://10.89.12.200:48080').then(data => {
        console.log('用户信息:', data);
      }).catch(error => {
        console.error('获取用户信息失败:', error);
      })
}
</script>

<script >
import lib from 'uac-token-sdk'
export default {
  methods: {
   getMethod(){
    // 创建SDK实例  
    const DetermineToken = new lib.DetermineToken()
    DetermineToken.JumpAddress('http://10.89.12.200:18888/#','http://10.89.12.200:48080').then(data => {
        console.log('用户信息:', data);
      }).catch(error => {
        console.error('获取用户信息失败:', error);
      })
    }
  }
}
</script>

Readme

Keywords

Package Sidebar

Install

npm i uac-token-sdk

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.25 kB

Total Files

6

Last publish

Collaborators

  • lishuhua