af-mobile-client-vue3 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "packageManager": "pnpm@10.12.3",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -100,8 +100,8 @@ function onSubmit(params) {
100
100
  }
101
101
  function closeWindows() {
102
102
  const ua = window.navigator.userAgent.toLowerCase()
103
- if (ua.includes('micromessenger') && typeof WeixinJSBridge !== 'undefined') {
104
- WeixinJSBridge.call('closeWindow')
103
+ if (ua.includes('micromessenger') && typeof (window as any).WeixinJSBridge !== 'undefined') {
104
+ (window as any).WeixinJSBridge.call('closeWindow')
105
105
  }
106
106
  else {
107
107
  // 关闭页面
@@ -142,7 +142,7 @@ function handleSubmit() {
142
142
  }
143
143
  function closeWindows() {
144
144
  if (isWechat()) {
145
- WeixinJSBridge.call('closeWindow')
145
+ (window as any).WeixinJSBridge.call('closeWindow')
146
146
  }
147
147
  else {
148
148
  // 关闭页面