zova-module-a-router 5.0.34 → 5.0.35
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 +2 -2
- package/src/bean/store.router.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-router",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.35",
|
|
4
4
|
"title": "a-router",
|
|
5
5
|
"zovaModule": {
|
|
6
6
|
"capabilities": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"vue-router": "^4.3.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "66609919a02dea2e2e6818412225d719223ae290"
|
|
41
41
|
}
|
package/src/bean/store.router.ts
CHANGED
|
@@ -64,6 +64,13 @@ export class StoreRouter extends BeanBase {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
public checkPathValid(path?: string): boolean {
|
|
68
|
+
if (!path) return false;
|
|
69
|
+
const moduleInfo = ModuleInfo.parseInfo(path);
|
|
70
|
+
if (!moduleInfo) return true;
|
|
71
|
+
return this.app.meta.module.exists(moduleInfo.relativeName);
|
|
72
|
+
}
|
|
73
|
+
|
|
67
74
|
private _resolveNameOrPath(query, fn) {
|
|
68
75
|
const query1 = {};
|
|
69
76
|
const query2: any = [];
|