af-mobile-client-vue3 1.2.0 → 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
|
@@ -14,7 +14,7 @@ import { getDict } from '@af-mobile-client-vue3/utils/dictUtil'
|
|
|
14
14
|
import { getRangeByType } from '@af-mobile-client-vue3/utils/queryFormDefaultRangePicker'
|
|
15
15
|
import { executeStrFunctionByContext } from '@af-mobile-client-vue3/utils/runEvalFunction'
|
|
16
16
|
import { areaList } from '@vant/area-data'
|
|
17
|
-
import dayjs from 'dayjs'
|
|
17
|
+
import dayjs from 'dayjs/esm/index'
|
|
18
18
|
import { debounce } from 'lodash-es'
|
|
19
19
|
import {
|
|
20
20
|
Area as VanArea,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnhancedRouteLocation } from '@af-mobile-client-vue3
|
|
1
|
+
import type { EnhancedRouteLocation } from '@af-mobile-client-vue3/router/types'
|
|
2
2
|
import type { RouteRecordName } from 'vue-router'
|
|
3
3
|
import { defineStore } from 'pinia'
|
|
4
4
|
import { ref } from 'vue'
|
|
@@ -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
|
// 关闭页面
|