mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
feat: update routers
This commit is contained in:
parent
3d9cfe77ae
commit
4c1a8fef9d
@ -405,7 +405,7 @@ const msg = {
|
||||
detailLabel: "Detail Label",
|
||||
summary: "Summary",
|
||||
detail: "Detail",
|
||||
administration: "Administration",
|
||||
menusManagement: "Menus Management",
|
||||
marketplace: "Marketplace",
|
||||
menus: "Menus",
|
||||
};
|
||||
export default msg;
|
||||
|
@ -404,7 +404,7 @@ const msg = {
|
||||
detailLabel: "Detail Label",
|
||||
summary: "Summary",
|
||||
detail: "Detail",
|
||||
administration: "Administration",
|
||||
menusManagement: "Menus Management",
|
||||
marketplace: "Marketplace",
|
||||
menus: "Menus",
|
||||
};
|
||||
export default msg;
|
||||
|
@ -402,7 +402,7 @@ const msg = {
|
||||
detailLabel: "详细标签",
|
||||
summary: "概括",
|
||||
detail: "详细",
|
||||
administration: "管理",
|
||||
menusManagement: "菜单管理",
|
||||
marketplace: "市场",
|
||||
menusManagement: "菜单",
|
||||
};
|
||||
export default msg;
|
||||
|
@ -17,11 +17,11 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import { routesDashboard } from "./dashboard";
|
||||
import { routesAdministration } from "./administration";
|
||||
import { routesMarketplace } from "./marketplace";
|
||||
import { routesAlarm } from "./alarm";
|
||||
import routesLayers from "./layer";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [...routesLayers, ...routesDashboard, ...routesAlarm, ...routesAdministration];
|
||||
const routes: Array<RouteRecordRaw> = [...routesMarketplace, ...routesLayers, ...routesDashboard, ...routesAlarm];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
|
@ -17,27 +17,27 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import Layout from "@/layout/Index.vue";
|
||||
|
||||
export const routesAdministration: Array<RouteRecordRaw> = [
|
||||
export const routesMarketplace: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "",
|
||||
name: "Administration",
|
||||
name: "Marketplace",
|
||||
meta: {
|
||||
title: "administration",
|
||||
title: "marketplace",
|
||||
icon: "settings",
|
||||
hasGroup: true,
|
||||
},
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
path: "/menus-management",
|
||||
path: "/marketplace/menus",
|
||||
name: "MenusManagement",
|
||||
meta: {
|
||||
title: "menusManagement",
|
||||
title: "menus",
|
||||
},
|
||||
component: () => import("@/views/administration/Menus.vue"),
|
||||
},
|
||||
{
|
||||
path: "/settings",
|
||||
path: "/marketplace/settings",
|
||||
name: "Settings",
|
||||
meta: {
|
||||
title: "settings",
|
@ -184,7 +184,8 @@ export const appStore = defineStore({
|
||||
if (res.data.errors) {
|
||||
return res.data;
|
||||
}
|
||||
console.log(res.data.data);
|
||||
|
||||
return res.data.data;
|
||||
},
|
||||
setReloadTimer(timer: IntervalHandle) {
|
||||
this.reloadTimer = timer;
|
||||
|
@ -20,8 +20,15 @@ limitations under the License. -->
|
||||
|
||||
const appStore = useAppStoreWithOut();
|
||||
|
||||
appStore.setPageTitle("Menus Management");
|
||||
appStore.queryMenuItems();
|
||||
appStore.setPageTitle("Menus");
|
||||
getMenus();
|
||||
|
||||
async function getMenus() {
|
||||
const resp = await appStore.queryMenuItems();
|
||||
const menus = resp.getMenuItems;
|
||||
console.log(menus);
|
||||
}
|
||||
// window.localStorage.setItem("menus", lang.value);
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.menus {
|
||||
|
Loading…
Reference in New Issue
Block a user