@uxda/appkit 1.2.46 → 1.2.48
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
|
@@ -3,6 +3,7 @@ import Taro, { useDidShow } from '@tarojs/taro';
|
|
|
3
3
|
import '@nutui/nutui-taro';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import groupBy from 'lodash/groupBy';
|
|
6
|
+
import debounce from 'lodash/debounce';
|
|
6
7
|
|
|
7
8
|
const _hoisted_1$n = { class: "token-line number" };
|
|
8
9
|
const _hoisted_2$j = { class: "number" };
|
|
@@ -3808,10 +3809,13 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3808
3809
|
}
|
|
3809
3810
|
return str;
|
|
3810
3811
|
});
|
|
3812
|
+
onMounted(() => {
|
|
3813
|
+
checkLoginTimeRule();
|
|
3814
|
+
});
|
|
3811
3815
|
useDidShow(() => {
|
|
3812
3816
|
checkLoginTimeRule();
|
|
3813
3817
|
});
|
|
3814
|
-
|
|
3818
|
+
const checkLoginTimeRule = debounce(() => {
|
|
3815
3819
|
const appkitOptions = useAppKitOptions();
|
|
3816
3820
|
const $http = useHttp();
|
|
3817
3821
|
$http.post("/cas/sysUser/checkLoginTimeRule", {
|
|
@@ -3825,7 +3829,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3825
3829
|
showLoginRule.value = true;
|
|
3826
3830
|
emits("show", loginRuleTip.value);
|
|
3827
3831
|
});
|
|
3828
|
-
}
|
|
3832
|
+
}, 100);
|
|
3829
3833
|
const emits = __emit;
|
|
3830
3834
|
return (_ctx, _cache) => {
|
|
3831
3835
|
return _ctx.show && showLoginRule.value ? (openBlock(), createElementBlock(
|
package/package.json
CHANGED
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts" setup>
|
|
14
|
-
import { computed, ref } from 'vue'
|
|
14
|
+
import { computed, ref, onMounted } from 'vue'
|
|
15
15
|
import { useHttp } from '../api'
|
|
16
16
|
import { useAppKitOptions } from '../../Appkit'
|
|
17
17
|
import { useSafeArea } from '../../shared/composables'
|
|
18
18
|
import { useDidShow } from '@tarojs/taro'
|
|
19
|
+
import debounce from 'lodash/debounce'
|
|
19
20
|
|
|
20
21
|
const props = withDefaults(
|
|
21
22
|
defineProps<{
|
|
@@ -47,12 +48,15 @@ const style = computed(() => {
|
|
|
47
48
|
return str
|
|
48
49
|
})
|
|
49
50
|
|
|
51
|
+
onMounted(() => {
|
|
52
|
+
checkLoginTimeRule()
|
|
53
|
+
})
|
|
50
54
|
useDidShow(() => {
|
|
51
55
|
checkLoginTimeRule()
|
|
52
56
|
})
|
|
53
57
|
|
|
54
58
|
// 检验登录时间
|
|
55
|
-
|
|
59
|
+
const checkLoginTimeRule = debounce(() => {
|
|
56
60
|
const appkitOptions = useAppKitOptions()
|
|
57
61
|
|
|
58
62
|
const $http = useHttp()
|
|
@@ -71,7 +75,7 @@ async function checkLoginTimeRule() {
|
|
|
71
75
|
|
|
72
76
|
emits('show', loginRuleTip.value)
|
|
73
77
|
})
|
|
74
|
-
}
|
|
78
|
+
}, 100)
|
|
75
79
|
|
|
76
80
|
// 父组件事件
|
|
77
81
|
const emits = defineEmits(['show'])
|