Skip to content

Commit

Permalink
Addchartpage (#19)
Browse files Browse the repository at this point in the history
* 优化i18n按钮,更新依赖

* fix bug

* 增加聊天界面

* 增加图表界面

---------

Signed-off-by: leelaa <leedaisen@hotmail.com>
  • Loading branch information
admin8756 authored Apr 25, 2024
1 parent 8cfefb6 commit d9aa905
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { createRouter, createWebHistory } from 'vue-router';
import error from './modules/error';
import results from './modules/results';
import other from './modules/other';
import charts from './modules/charts';

import { name } from '../../package.json';
// 默认布局
const DefaultLayout = () => import('../layouts/DefaultLayout.vue');
Expand Down Expand Up @@ -37,6 +39,7 @@ const routes = [
},
component: import('../pages/loginPage.vue'),
},
...charts,
...results,
...other,
...error,
Expand Down
58 changes: 58 additions & 0 deletions src/router/modules/charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
const DefaultLayout = () => import('@/layouts/DefaultLayout.vue');
export default [
{
path: '/charts',
component: DefaultLayout,
meta: {
title: '福录大全',
},
children: [
{
path: '/bar',
name: 'ChartBar',
component: () => import('@/pages/charts/ChartBar.vue'),
meta: {
title: '柱状图',
},
},
{
path: '/line',
name: 'ChartLine',
component: () => import('@/pages/charts/ChartLine.vue'),
meta: {
title: '折线图',
},
},
{
path: '/pie',
name: 'ChartPie',
component: () => import('@/pages/charts/ChartPie.vue'),
meta: {
title: '饼图',
},
},
{
path: '/dataset',
name: 'ChartDataset',
component: () => import('@/pages/charts/ChartDataset.vue'),
meta: {
title: '数据集',
},
},{
path:'/radar',
name:'ChartRadar',
component:()=>import('@/pages/charts/ChartRadar.vue'),
meta:{
title:'雷达图'
}
},{
path:'/scatter',
name:'ChartScatter',
component:()=>import('@/pages/charts/ChartScatter.vue'),
meta:{
title:'散点图'
}
}
],
},
];

1 comment on commit d9aa905

@vercel
Copy link

@vercel vercel bot commented on d9aa905 Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.