2.1.0 • Published 4 months ago

tzcc-lg-v1 v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

功能介绍

集成飞书登录:扫码登录、授权登录、自动登录

适配环境

适配 Vue 2、Vue 2.7、和Vue 3.x

安装组件

yarn add tzcc-lg-v1@latest
npm install tzcc-lg-v1@latest
pnpm install tzcc-lg-v1@latest

全局注册组件 main.ts或main.js

import TZLogin from 'tzcc-lg-v1'
app.use(TZLogin)

使用组件

<template>
  <div>
    <TZLogin :commet="projectId" @custom-event="handleCustomEvent"></TZLogin>
  </div>
</template>
<script lang="ts">
   export default {
    name: "Login"
   }
</script>
<script setup lang="ts">
  const projectId = "2";//定义项目ID
  const handleCustomEvent = (eventData: any) => {
  // 处理从组件中传递过来的数据Token用于登录,传输给后端请求用户信息
  console.log("组件传回来的数据token===", eventData)
}
</script>
2.1.0

4 months ago

2.0.9

5 months ago

2.0.8

5 months ago

2.0.0

5 months ago

1.1.2

5 months ago

0.0.6

5 months ago

1.1.1

5 months ago

0.0.5

5 months ago

1.1.0

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.1

5 months ago