@farris/jit-engine 1.3.281 → 1.3.282
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/lib/mobileapp/vue/code-generator/file-generator/project-generator/router-generator.js
CHANGED
|
@@ -43,7 +43,9 @@ const router = createRouter({
|
|
|
43
43
|
routes:asyncRoutes,
|
|
44
44
|
})
|
|
45
45
|
|
|
46
|
-
BeforeEachOfRouter && router.beforeEach(
|
|
46
|
+
BeforeEachOfRouter && router.beforeEach((to, from ,next)=>{
|
|
47
|
+
BeforeEachOfRouter(to, from ,next,{asyncRoutes})
|
|
48
|
+
})
|
|
47
49
|
|
|
48
50
|
export default router
|
|
49
51
|
`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VueEntityNameCreator = void 0;
|
|
4
|
-
const
|
|
4
|
+
const toolhepler_1 = require("../../../../utility/toolhepler");
|
|
5
5
|
class VueEntityNameCreator {
|
|
6
6
|
constructor() { }
|
|
7
7
|
static getEntityName(str) {
|
|
8
|
-
if (
|
|
8
|
+
if (toolhepler_1.ToolHelper.isFirstNumber(str)) {
|
|
9
9
|
str = "Jit" + str;
|
|
10
10
|
}
|
|
11
11
|
return str + "Entity";
|
|
@@ -633,11 +633,8 @@ class VueViewModelsCreator {
|
|
|
633
633
|
if (features) {
|
|
634
634
|
state.controlInfo['features'] = lodash_1.cloneDeep(features);
|
|
635
635
|
}
|
|
636
|
-
if (control.binding && control.binding.path) {
|
|
637
|
-
state.controlInfo['bindingPath'] = control.binding.path;
|
|
638
|
-
}
|
|
639
636
|
if (control.path) {
|
|
640
|
-
state.controlInfo['
|
|
637
|
+
state.controlInfo['bindingPath'] = control.path;
|
|
641
638
|
}
|
|
642
639
|
if (state.controlInfo['type'] && state.controlInfo['type'] === 'LightAttachment') {
|
|
643
640
|
this.setState(control, state, 'visible', 'visible');
|