mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
- 修改路由配置,使用 createWebHashHistory 替代 createWebHistory- 重命名部分组件以提高代码一致性 - 优化设置页面布局,使用卡片组件分类显示不同设置项 - 调整提示词模板展示方式,增加警告提示
24 lines
815 B
JavaScript
24 lines
815 B
JavaScript
import {createMemoryHistory, createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
|
|
|
|
import stockView from '../components/stock.vue'
|
|
import settingsView from '../components/settings.vue'
|
|
import aboutView from "../components/about.vue";
|
|
import fundView from "../components/fund.vue";
|
|
import marketView from "../components/market.vue";
|
|
|
|
const routes = [
|
|
{ path: '/', component: stockView,name: 'stock'},
|
|
{ path: '/fund', component: fundView,name: 'fund' },
|
|
{ path: '/settings', component: settingsView,name: 'settings' },
|
|
{ path: '/about', component: aboutView,name: 'about' },
|
|
{ path: '/market', component: marketView,name: 'market' },
|
|
|
|
]
|
|
|
|
const router = createRouter({
|
|
//history: createWebHistory(),
|
|
history: createWebHashHistory(),
|
|
routes,
|
|
})
|
|
|
|
export default router |