mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 04:09:14 +00:00
fix: cannot access uninitialized variable on Safari (#308)
This commit is contained in:
@@ -22,7 +22,7 @@ import { routesAlarm } from "./alarm";
|
||||
import routesLayers from "./layer";
|
||||
import { routesSettings } from "./settings";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
const routes: RouteRecordRaw[] = [
|
||||
...routesMarketplace,
|
||||
...routesLayers,
|
||||
...routesAlarm,
|
||||
|
@@ -18,9 +18,8 @@ import Layout from "@/layout/Index.vue";
|
||||
import { useAppStoreWithOut } from "@/store/modules/app";
|
||||
import type { MenuOptions } from "@/types/app";
|
||||
|
||||
async function layerDashboards() {
|
||||
function layerDashboards() {
|
||||
const appStore = useAppStoreWithOut();
|
||||
await appStore.getActivateMenus();
|
||||
const routes = appStore.allMenus.map((item: MenuOptions) => {
|
||||
const route: any = {
|
||||
path: "",
|
||||
@@ -84,4 +83,4 @@ async function layerDashboards() {
|
||||
return routes;
|
||||
}
|
||||
|
||||
export default await layerDashboards();
|
||||
export default layerDashboards();
|
||||
|
Reference in New Issue
Block a user