@uxda/appkit 4.3.22 → 4.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -557,11 +557,12 @@ function useLogger(options) {
557
557
  }
558
558
 
559
559
  function useWxAuth() {
560
- function toWxAuth(source, redirectUri) {
560
+ function toWxAuth(source, redirectUri, authSource = null) {
561
561
  const $http = useHttp$2();
562
562
  $http.get("/cas/auth/render/", {
563
563
  source,
564
- redirectUri
564
+ redirectUri,
565
+ authSource
565
566
  }).then((res) => {
566
567
  location.replace(res);
567
568
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.22",
3
+ "version": "4.3.23",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -10,12 +10,13 @@ export function useWxAuth() {
10
10
  * @param source 设备码
11
11
  * @param redirectUri 重定向地址
12
12
  */
13
- function toWxAuth(source, redirectUri) {
13
+ function toWxAuth(source, redirectUri, authSource = null) {
14
14
  const $http = useHttp()
15
15
  $http
16
16
  .get('/cas/auth/render/', {
17
17
  source,
18
18
  redirectUri,
19
+ authSource
19
20
  })
20
21
  .then((res: any) => {
21
22
  location.replace(res)