You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';
|
|
|
|
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
|
|
|
|
import highScoreVisualization from '@/views/highScore/dailyMonitoring/index.vue'
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHashHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? '/highScoreVisualization' : '/'),
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
redirect: '/highScoreVisualization' // 自动跳转到 /highScoreVisualization
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/highScoreVisualization',
|
|
|
|
name: 'highScoreVisualization',
|
|
|
|
component: highScoreVisualization
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|