doway-coms 1.1.23 → 1.1.25

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.
@@ -78932,6 +78932,7 @@ __webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { re
78932
78932
  __webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ common_stringUrlQuery; });
78933
78933
  __webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
78934
78934
  __webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
78935
+ __webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
78935
78936
  __webpack_require__.d(__webpack_exports__, "timeAgo", function() { return /* reexport */ timeAgo; });
78936
78937
  __webpack_require__.d(__webpack_exports__, "parseTime", function() { return /* reexport */ parseTime; });
78937
78938
  __webpack_require__.d(__webpack_exports__, "formatTime", function() { return /* reexport */ formatTime; });
@@ -107773,6 +107774,26 @@ function replaceParamString(
107773
107774
  async function getGridValidErrors(gridView) {
107774
107775
  const gridErrors = await gridView.fullValidate()
107775
107776
  return gridErrors
107777
+ }
107778
+ function routeBeforeEach(to, from, next){
107779
+ if(to.params.aliveCacheKey){
107780
+ to.meta['aliveCacheKey'] = to.params.aliveCacheKey
107781
+ }
107782
+ if(!to.meta.aliveCacheKey){
107783
+ alert('防呆,子应用没有路由缓存键')
107784
+ }
107785
+ if (to.meta.moduleCode && !store.getters.moduleViewInfo[to.meta.moduleCode]) {
107786
+ store
107787
+ .dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
107788
+ .then(() => {
107789
+ next()
107790
+ })
107791
+ .catch((err) => {
107792
+ console.debug(err)
107793
+ })
107794
+ } else {
107795
+ next()
107796
+ }
107776
107797
  }
107777
107798
  // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107778
107799
  var _axios_0_18_0_axios = __webpack_require__("7f43");
@@ -78941,6 +78941,7 @@ __webpack_require__.d(__webpack_exports__, "getFormValidErrors", function() { re
78941
78941
  __webpack_require__.d(__webpack_exports__, "stringUrlQuery", function() { return /* reexport */ common_stringUrlQuery; });
78942
78942
  __webpack_require__.d(__webpack_exports__, "getRouteFullPath", function() { return /* reexport */ getRouteFullPath; });
78943
78943
  __webpack_require__.d(__webpack_exports__, "getGridValidErrors", function() { return /* reexport */ getGridValidErrors; });
78944
+ __webpack_require__.d(__webpack_exports__, "routeBeforeEach", function() { return /* reexport */ routeBeforeEach; });
78944
78945
  __webpack_require__.d(__webpack_exports__, "timeAgo", function() { return /* reexport */ timeAgo; });
78945
78946
  __webpack_require__.d(__webpack_exports__, "parseTime", function() { return /* reexport */ parseTime; });
78946
78947
  __webpack_require__.d(__webpack_exports__, "formatTime", function() { return /* reexport */ formatTime; });
@@ -107782,6 +107783,26 @@ function replaceParamString(
107782
107783
  async function getGridValidErrors(gridView) {
107783
107784
  const gridErrors = await gridView.fullValidate()
107784
107785
  return gridErrors
107786
+ }
107787
+ function routeBeforeEach(to, from, next){
107788
+ if(to.params.aliveCacheKey){
107789
+ to.meta['aliveCacheKey'] = to.params.aliveCacheKey
107790
+ }
107791
+ if(!to.meta.aliveCacheKey){
107792
+ alert('防呆,子应用没有路由缓存键')
107793
+ }
107794
+ if (to.meta.moduleCode && !store.getters.moduleViewInfo[to.meta.moduleCode]) {
107795
+ store
107796
+ .dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
107797
+ .then(() => {
107798
+ next()
107799
+ })
107800
+ .catch((err) => {
107801
+ console.debug(err)
107802
+ })
107803
+ } else {
107804
+ next()
107805
+ }
107785
107806
  }
107786
107807
  // EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
107787
107808
  var _axios_0_18_0_axios = __webpack_require__("7f43");