@uxda/appkit 1.2.48 → 1.2.52

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
@@ -3488,7 +3488,7 @@ function useHttp() {
3488
3488
  return false;
3489
3489
  },
3490
3490
  (raw) => {
3491
- if (raw.status > 500 && raw.status != 51014) {
3491
+ if (raw.status > 500 && raw.status != 51015 && raw.status != 51014) {
3492
3492
  return true;
3493
3493
  }
3494
3494
  return false;
@@ -3823,11 +3823,16 @@ var script = /* @__PURE__ */ defineComponent({
3823
3823
  tenantId: appkitOptions.tenant(),
3824
3824
  device: "mini"
3825
3825
  }).then((result) => {
3826
- if (result === true)
3826
+ if (result === true) {
3827
+ showLoginRule.value = false;
3828
+ loginRuleTip.value = "";
3829
+ emits("show", loginRuleTip.value);
3827
3830
  return;
3828
- loginRuleTip.value = result.message;
3829
- showLoginRule.value = true;
3830
- emits("show", loginRuleTip.value);
3831
+ } else if (result.status) {
3832
+ showLoginRule.value = true;
3833
+ loginRuleTip.value = result.message;
3834
+ emits("show", loginRuleTip.value);
3835
+ }
3831
3836
  });
3832
3837
  }, 100);
3833
3838
  const emits = __emit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.48",
3
+ "version": "1.2.52",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -54,7 +54,7 @@ function useHttp() {
54
54
  return false
55
55
  },
56
56
  (raw) => {
57
- if (raw.status > 500 && raw.status != 51014) {
57
+ if (raw.status > 500 && raw.status != 51015 && raw.status != 51014) {
58
58
  return true
59
59
  }
60
60
  return false
@@ -67,13 +67,16 @@ const checkLoginTimeRule = debounce(() => {
67
67
  device: 'mini',
68
68
  })
69
69
  .then((result: any) => {
70
- if (result === true) return
71
-
72
- loginRuleTip.value = result.message
73
-
74
- showLoginRule.value = true
75
-
76
- emits('show', loginRuleTip.value)
70
+ if (result === true) {
71
+ showLoginRule.value = false
72
+ loginRuleTip.value = ''
73
+ emits('show', loginRuleTip.value)
74
+ return
75
+ } else if (result.status) {
76
+ showLoginRule.value = true
77
+ loginRuleTip.value = result.message
78
+ emits('show', loginRuleTip.value)
79
+ }
77
80
  })
78
81
  }, 100)
79
82