mooho-base-admin-plus 0.4.78 → 0.4.79

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.78",
4
+ "version": "0.4.79",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -102,6 +102,8 @@
102
102
  let view = await this.loadDataView(viewCode);
103
103
 
104
104
  if (view == null) {
105
+ return;
106
+ } else if (!view.isExist) {
105
107
  this.error('Front_Msg_View_Code_Not_Exist|' + viewCode);
106
108
  return;
107
109
  }
@@ -595,6 +595,8 @@
595
595
  }
596
596
 
597
597
  if (view == null) {
598
+ return;
599
+ } else if (!view.isExist) {
598
600
  if (typeof onFail === 'function') {
599
601
  onFail();
600
602
  } else {
@@ -905,6 +905,8 @@
905
905
  }
906
906
 
907
907
  if (view == null) {
908
+ return;
909
+ } else if (!view.isExist) {
908
910
  if (typeof onFail === 'function') {
909
911
  onFail();
910
912
  } else {
@@ -28,7 +28,9 @@ export default {
28
28
  async load({ state }, code) {
29
29
  if (!(code in state.dataViews)) {
30
30
  let res = await dataViewApi.getByCode(code);
31
- state.dataViews[code] = res;
31
+ if (res != null && res.isExist) {
32
+ state.dataViews[code] = res;
33
+ }
32
34
 
33
35
  return res;
34
36
  } else {
@@ -23,7 +23,9 @@ export default {
23
23
  async load({ state }, id) {
24
24
  if (!(id in state.pages)) {
25
25
  let res = await customPageApi.get(id);
26
- state.pages[id] = res;
26
+ if (res) {
27
+ state.pages[id] = res;
28
+ }
27
29
 
28
30
  return res;
29
31
  } else {