@uxda/appkit 1.2.44 → 1.2.46
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 +5 -14
- package/package.json +1 -1
- package/src/notice/components/LoginSetting.vue +8 -20
package/dist/index.js
CHANGED
|
@@ -3796,8 +3796,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3796
3796
|
setup(__props, { emit: __emit }) {
|
|
3797
3797
|
const props = __props;
|
|
3798
3798
|
const safeArea = useSafeArea();
|
|
3799
|
-
const loginRule = ref({});
|
|
3800
3799
|
const showLoginRule = ref(false);
|
|
3800
|
+
const loginRuleTip = ref("");
|
|
3801
3801
|
const style = computed(() => {
|
|
3802
3802
|
let str = "";
|
|
3803
3803
|
if (props.withTabbar) {
|
|
@@ -3808,7 +3808,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3808
3808
|
}
|
|
3809
3809
|
return str;
|
|
3810
3810
|
});
|
|
3811
|
-
|
|
3811
|
+
useDidShow(() => {
|
|
3812
3812
|
checkLoginTimeRule();
|
|
3813
3813
|
});
|
|
3814
3814
|
async function checkLoginTimeRule() {
|
|
@@ -3821,18 +3821,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3821
3821
|
}).then((result) => {
|
|
3822
3822
|
if (result === true)
|
|
3823
3823
|
return;
|
|
3824
|
-
|
|
3824
|
+
loginRuleTip.value = result.message;
|
|
3825
3825
|
showLoginRule.value = true;
|
|
3826
|
-
|
|
3827
|
-
}
|
|
3828
|
-
async function getLoginRule() {
|
|
3829
|
-
const appkitOptions = useAppKitOptions();
|
|
3830
|
-
const $http = useHttp();
|
|
3831
|
-
$http.get("/cas/sysUser/getLoginRule", {
|
|
3832
|
-
appCode: props.app || appkitOptions.app()
|
|
3833
|
-
}).then((result) => {
|
|
3834
|
-
loginRule.value = result;
|
|
3835
|
-
emits("show", { startTime: loginRule.value.startTime, endTime: loginRule.value.endTime });
|
|
3826
|
+
emits("show", loginRuleTip.value);
|
|
3836
3827
|
});
|
|
3837
3828
|
}
|
|
3838
3829
|
const emits = __emit;
|
|
@@ -3849,7 +3840,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
3849
3840
|
createElementVNode(
|
|
3850
3841
|
"div",
|
|
3851
3842
|
_hoisted_2,
|
|
3852
|
-
|
|
3843
|
+
toDisplayString(loginRuleTip.value),
|
|
3853
3844
|
1
|
|
3854
3845
|
/* TEXT */
|
|
3855
3846
|
)
|
package/package.json
CHANGED
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
src="https://cdn.ddjf.com/static/images/nutshell/empty-permission.png"
|
|
6
6
|
/>
|
|
7
7
|
<div class="login-setting-text">
|
|
8
|
-
|
|
8
|
+
{{ loginRuleTip }}
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts" setup>
|
|
14
|
-
import { computed,
|
|
14
|
+
import { computed, ref } from 'vue'
|
|
15
15
|
import { useHttp } from '../api'
|
|
16
16
|
import { useAppKitOptions } from '../../Appkit'
|
|
17
17
|
import { useSafeArea } from '../../shared/composables'
|
|
18
|
+
import { useDidShow } from '@tarojs/taro'
|
|
18
19
|
|
|
19
20
|
const props = withDefaults(
|
|
20
21
|
defineProps<{
|
|
@@ -32,8 +33,8 @@ const props = withDefaults(
|
|
|
32
33
|
)
|
|
33
34
|
|
|
34
35
|
const safeArea = useSafeArea()
|
|
35
|
-
const loginRule = ref<any>({})
|
|
36
36
|
const showLoginRule = ref<boolean>(false)
|
|
37
|
+
const loginRuleTip = ref('')
|
|
37
38
|
|
|
38
39
|
const style = computed(() => {
|
|
39
40
|
let str = ''
|
|
@@ -46,7 +47,7 @@ const style = computed(() => {
|
|
|
46
47
|
return str
|
|
47
48
|
})
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
useDidShow(() => {
|
|
50
51
|
checkLoginTimeRule()
|
|
51
52
|
})
|
|
52
53
|
|
|
@@ -64,24 +65,11 @@ async function checkLoginTimeRule() {
|
|
|
64
65
|
.then((result: any) => {
|
|
65
66
|
if (result === true) return
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
showLoginRule.value = true
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// 查询当前租户登录规则
|
|
73
|
-
async function getLoginRule() {
|
|
74
|
-
const appkitOptions = useAppKitOptions()
|
|
68
|
+
loginRuleTip.value = result.message
|
|
75
69
|
|
|
76
|
-
|
|
77
|
-
$http
|
|
78
|
-
.get('/cas/sysUser/getLoginRule', {
|
|
79
|
-
appCode: props.app || appkitOptions.app(),
|
|
80
|
-
})
|
|
81
|
-
.then((result) => {
|
|
82
|
-
loginRule.value = result
|
|
70
|
+
showLoginRule.value = true
|
|
83
71
|
|
|
84
|
-
emits('show',
|
|
72
|
+
emits('show', loginRuleTip.value)
|
|
85
73
|
})
|
|
86
74
|
}
|
|
87
75
|
|