@uxda/appkit 1.2.48 → 1.2.50

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,10 +3823,14 @@ 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;
3831
+ }
3829
3832
  showLoginRule.value = true;
3833
+ loginRuleTip.value = result.message;
3830
3834
  emits("show", loginRuleTip.value);
3831
3835
  });
3832
3836
  }, 100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.48",
3
+ "version": "1.2.50",
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,12 +67,15 @@ 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
70
+ if (result === true) {
71
+ showLoginRule.value = false
72
+ loginRuleTip.value = ''
73
+ emits('show', loginRuleTip.value)
74
+ return
75
+ }
73
76
 
74
77
  showLoginRule.value = true
75
-
78
+ loginRuleTip.value = result.message
76
79
  emits('show', loginRuleTip.value)
77
80
  })
78
81
  }, 100)