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;