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.
@@ -15036,7 +15036,9 @@ var dataView = {
15036
15036
  async load({ state }, code) {
15037
15037
  if (!(code in state.dataViews)) {
15038
15038
  let res2 = await dataViewApi.getByCode(code);
15039
- state.dataViews[code] = res2;
15039
+ if (res2 != null && res2.isExist) {
15040
+ state.dataViews[code] = res2;
15041
+ }
15040
15042
  return res2;
15041
15043
  } else {
15042
15044
  return state.dataViews[code];
@@ -20156,7 +20158,9 @@ var viewPage$1 = {
20156
20158
  async load({ state }, id) {
20157
20159
  if (!(id in state.pages)) {
20158
20160
  let res2 = await customPageApi.get(id);
20159
- state.pages[id] = res2;
20161
+ if (res2) {
20162
+ state.pages[id] = res2;
20163
+ }
20160
20164
  return res2;
20161
20165
  } else {
20162
20166
  return state.pages[id];
@@ -31744,6 +31748,8 @@ const _sfc_main$J = {
31744
31748
  async init(viewCode, callback) {
31745
31749
  let view = await this.loadDataView(viewCode);
31746
31750
  if (view == null) {
31751
+ return;
31752
+ } else if (!view.isExist) {
31747
31753
  this.error("Front_Msg_View_Code_Not_Exist|" + viewCode);
31748
31754
  return;
31749
31755
  }
@@ -34069,6 +34075,8 @@ const _sfc_main$w = {
34069
34075
  view = await this.loadDataView(viewCode.split("_")[0]);
34070
34076
  }
34071
34077
  if (view == null) {
34078
+ return;
34079
+ } else if (!view.isExist) {
34072
34080
  if (typeof onFail === "function") {
34073
34081
  onFail();
34074
34082
  } else {
@@ -39259,6 +39267,8 @@ const _sfc_main$q = {
39259
39267
  view = await this.loadDataView(viewCode.split("_")[0]);
39260
39268
  }
39261
39269
  if (view == null) {
39270
+ return;
39271
+ } else if (!view.isExist) {
39262
39272
  if (typeof onFail === "function") {
39263
39273
  onFail();
39264
39274
  } else {