mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
feat: update
This commit is contained in:
parent
9cd2871f37
commit
995eaf8318
@ -86,17 +86,7 @@ limitations under the License. -->
|
||||
|
||||
function getPathNames() {
|
||||
const p = route.params;
|
||||
// get names
|
||||
|
||||
// set names
|
||||
if (appStore.pathNames.length && p.layerId === appStore.pathNames[0].layerId) {
|
||||
const arr = [...appStore.pathNames, p];
|
||||
const list = deduplication(arr, ["layerId", "entity", "name"]);
|
||||
appStore.setPathNames(list);
|
||||
} else {
|
||||
appStore.setPathNames([p]);
|
||||
}
|
||||
// console.log(route.params);
|
||||
console.log(route.meta);
|
||||
}
|
||||
|
||||
watch(
|
||||
|
@ -35,7 +35,6 @@ interface AppState {
|
||||
version: string;
|
||||
isMobile: boolean;
|
||||
reloadTimer: Nullable<IntervalHandle>;
|
||||
pathNames: { name: string; layer: string; entity: string }[];
|
||||
}
|
||||
|
||||
export const appStore = defineStore({
|
||||
@ -56,7 +55,6 @@ export const appStore = defineStore({
|
||||
version: "",
|
||||
isMobile: false,
|
||||
reloadTimer: null,
|
||||
pathNames: [],
|
||||
}),
|
||||
getters: {
|
||||
duration(): Duration {
|
||||
@ -148,9 +146,6 @@ export const appStore = defineStore({
|
||||
setPageTitle(title: string) {
|
||||
this.pageTitle = title;
|
||||
},
|
||||
setPathNames(names: { name: string; layer: string; entity: string }[]) {
|
||||
this.pathNames = names;
|
||||
},
|
||||
runEventStack() {
|
||||
if (this.timer) {
|
||||
clearTimeout(this.timer);
|
||||
|
Loading…
Reference in New Issue
Block a user