From f8cbcbe0e9fc1442c6c7c0b252366a392a085818 Mon Sep 17 00:00:00 2001 From: ziszat <276136889@qq.com> Date: Tue, 12 Nov 2024 20:05:10 +0800 Subject: [PATCH 1/3] add: add grafana --- .eslintrc.js | 1 + src/router/index.js | 6 ++-- src/views/documentation/index.vue | 57 ------------------------------- src/views/grafana/index.vue | 48 ++++++++++++++++++++++++++ vue.config.js | 2 +- 5 files changed, 53 insertions(+), 61 deletions(-) delete mode 100644 src/views/documentation/index.vue create mode 100644 src/views/grafana/index.vue diff --git a/.eslintrc.js b/.eslintrc.js index c9775054..bd03f8ed 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -69,6 +69,7 @@ module.exports = { 'newIsCap': true, 'capIsNew': false }], + 'vue/no-unused-components': 'off', 'new-parens': 2, 'no-array-constructor': 2, 'no-caller': 2, diff --git a/src/router/index.js b/src/router/index.js index 26cba844..9e5aac54 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -84,13 +84,13 @@ export const constantRoutes = [ ] }, { - path: '/documentation', + path: '/grafana', component: Layout, children: [ { path: 'index', - component: () => import('@/views/documentation/index'), - name: 'Documentation', + component: () => import('@/views/grafana/index'), + name: 'Grafana', meta: { title: '算力可视化', icon: 'chart', affix: true } } ] diff --git a/src/views/documentation/index.vue b/src/views/documentation/index.vue deleted file mode 100644 index 09f5951b..00000000 --- a/src/views/documentation/index.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - diff --git a/src/views/grafana/index.vue b/src/views/grafana/index.vue new file mode 100644 index 00000000..8c4e07be --- /dev/null +++ b/src/views/grafana/index.vue @@ -0,0 +1,48 @@ +