@vc-shell/framework 1.0.91 → 1.0.92
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.92",
|
|
4
4
|
"main": "./dist/framework.mjs",
|
|
5
5
|
"module": "./dist/framework.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"whatwg-fetch": "^3.6.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
59
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
+
"@vc-shell/api-client-generator": "^1.0.92",
|
|
59
|
+
"@vc-shell/config-generator": "^1.0.92",
|
|
60
60
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
61
61
|
"sass": "^1.62.1",
|
|
62
62
|
"typescript": "~5.0.4",
|
|
@@ -82,21 +82,18 @@ export function useBladeNavigation(): IUseBladeNavigation {
|
|
|
82
82
|
const lastBlade = newVal[newVal.length - 1];
|
|
83
83
|
|
|
84
84
|
if (workspace && workspace.blade.url) {
|
|
85
|
+
let url: string;
|
|
85
86
|
if (lastBlade && lastBlade.blade.url) {
|
|
86
|
-
|
|
87
|
+
url = urlPattern.stringify({
|
|
87
88
|
workspace: workspace?.blade.url.substring(1),
|
|
88
89
|
blade: lastBlade?.blade.url.substring(1),
|
|
89
90
|
param: lastBlade?.param,
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
-
addEntryToLocation(url);
|
|
93
92
|
} else {
|
|
94
|
-
|
|
95
|
-
if (url) {
|
|
96
|
-
clearParentData();
|
|
97
|
-
addEntryToLocation(url);
|
|
98
|
-
}
|
|
93
|
+
url = workspace?.blade.url;
|
|
99
94
|
}
|
|
95
|
+
|
|
96
|
+
if (url) addEntryToLocation(url);
|
|
100
97
|
}
|
|
101
98
|
}
|
|
102
99
|
},
|
|
@@ -112,6 +109,7 @@ export function useBladeNavigation(): IUseBladeNavigation {
|
|
|
112
109
|
workspaceOptions.value = unref(options);
|
|
113
110
|
workspaceParam.value = unref(param);
|
|
114
111
|
|
|
112
|
+
await nextTick();
|
|
115
113
|
await router.replace(bladeComponent.url);
|
|
116
114
|
}
|
|
117
115
|
}
|
|
@@ -125,6 +123,8 @@ export function useBladeNavigation(): IUseBladeNavigation {
|
|
|
125
123
|
return;
|
|
126
124
|
}
|
|
127
125
|
|
|
126
|
+
clearParentData();
|
|
127
|
+
|
|
128
128
|
// caller blade component
|
|
129
129
|
const instanceComponent =
|
|
130
130
|
navigationInstance.bladesRefs.value.find((item) => item.active)?.blade?.blade ??
|