admin 管理员组

文章数量: 1184232

首先要配置好:域名、企业微信的appid
在入口文件(index.html)引入

<script src="http://rescdn.qqmail/node/ww/wwopenmng/js/sso/wwLogin-1.0.0.js" type="text/javascript" charset="utf-8"></script>

然后登录入口

<a  href="https://open.work.weixin.qq/wwopen/sso/3rd_qrConnect?appid=wwed8bd97ffcef64c5&redirect_uri=http%3a%2f%2fe.egu360%2f%23%2fwework%2fauthcode&state=EGU@gyoss9&usertype=member">
  <img
    src="//rescdn.qqmail/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white$5ecdf536.png"
    srcset="//rescdn.qqmail/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white_2x$ce44f9f2.png 2x"
    alt="企业微信登录"
  >
</a>

A标签里
appid:之前配置好的
redirect_uri:域名拼接
http%3a%2f%2fe.egu360%2f%23%2fwework%2fauthcode&state=EGU
这个#代表是hash模式(哈希)。history模式可不带#。
前端路由的两种模式: hash 模式和 history 模式

本文标签: 第三方 企业 Vue