mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
22 lines
746 B
JavaScript
22 lines
746 B
JavaScript
import {createMemoryHistory, createRouter, createWebHashHistory} from 'vue-router'
|
|
|
|
import stockView from '../components/stock.vue'
|
|
import settingsView from '../components/settings.vue'
|
|
import about from "../components/about.vue";
|
|
import fundView from "../components/fund.vue";
|
|
import market 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: about,name: 'about' },
|
|
{ path: '/market', component: market,name: 'market' },
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes,
|
|
})
|
|
|
|
export default router |