From 22968a66fa8c7e58c13378e09dcc484ecb278332 Mon Sep 17 00:00:00 2001 From: zhanghan2021 Date: Thu, 1 Feb 2024 14:29:38 +0800 Subject: [PATCH] update page extention name --- server/service/extentions.go | 4 ++-- web/package.json | 2 +- web/src/router/index.ts | 2 +- web/vite.config.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/service/extentions.go b/server/service/extentions.go index 430b09a..5d4b511 100644 --- a/server/service/extentions.go +++ b/server/service/extentions.go @@ -21,13 +21,13 @@ func AddExtentions() { } pe1 := &common.PageExtention{ Type: common.ExtentionPage, - Name: "plugin-atune", + Name: "任务列表", URL: "/plugin/atune/task", Permission: "plugin.prometheus.page/menu", } pe2 := &common.PageExtention{ Type: common.ExtentionPage, - Name: "plugin-atune", + Name: "调优模板", URL: "/plugin/atune/template", Permission: "plugin.prometheus.page/menu", } diff --git a/web/package.json b/web/package.json index 166b544..d787905 100644 --- a/web/package.json +++ b/web/package.json @@ -24,4 +24,4 @@ "vite": "^4.4.5", "vue-tsc": "^1.8.5" } -} +} \ No newline at end of file diff --git a/web/src/router/index.ts b/web/src/router/index.ts index 21bd55e..c334947 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory, createWebHashHistory } from "vue-router"; +import { createRouter, createWebHashHistory } from "vue-router"; import type { RouteRecordRaw } from "vue-router"; import Home from "@/views/Home.vue"; import Atune from "@/views/atuneList.vue"; diff --git a/web/vite.config.ts b/web/vite.config.ts index f971db0..04825e0 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -16,13 +16,13 @@ export default defineConfig({ cors: true, proxy: { '/plugin/atune': { - target: 'http://10.44.43.181:8099', + target: 'http://localhost:8099', changeOrigin: true, rewrite: (p) => p.replace('/^\/plugin\/atune/', '') }, }, }, - // base: '/plugin/atune/', + base: '/plugin/atune/', build: { outDir: 'dist', assetsDir: 'static/', //指定静态资源存放路径 -- Gitee