Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the page for displaying the configuration list #1530

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sermant-backend/src/main/webapp/frontend/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ declare module '@vue/runtime-core' {
ElInput: typeof import('element-plus/es')['ElInput']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const toEventsConfig = () => {
router.replace("/events-config");
};
const toConfig = () => {
router.replace("/config");
};
const getAssetsImge = (url: string) => {
return new URL(`../../assets/${url}`, import.meta.url).href;
};
Expand All @@ -42,6 +46,7 @@ const getAssetsImge = (url: string) => {
<el-menu-item index="3-1" @click="toEvents"> 监测 </el-menu-item>
<el-menu-item index="3-2" @click="toEventsConfig"> 配置 </el-menu-item>
</el-sub-menu>
<el-menu-item index="4" @click="toConfig"> 配置管理 </el-menu-item>
<el-menu-item h="full" @click="toggleDark()">
<button
class="border-none w-full bg-transparent cursor-pointer"
Expand Down
8 changes: 7 additions & 1 deletion sermant-backend/src/main/webapp/frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {createRouter, createWebHashHistory} from 'vue-router'
import EventsView from '~/views/EventsView.vue'
import EventsConfigView from '~/views/EventsConfigView.vue'
import InstancesView from '~/views/InstancesView.vue'
import ConfigView from "~/views/ConfigView.vue";

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
Expand Down Expand Up @@ -31,7 +32,12 @@ const router = createRouter({
path: '/events-config',
name: 'events-config',
component: EventsConfigView
}
},
{
path: '/config',
name: 'config',
component: ConfigView
},
]
})

Expand Down
Loading
Loading