菜单
×
×
正确!
练习Vue 中的路由设置在 'main.js' 文件中。 请填写下面的空白,以便成功创建路由。 import { createApp } from 'vue' import { createRouter, createWebHistory } from 'vue-router' import App from './App.vue' import FishTypes from './components/FishTypes.vue' const router = createRouter({ history: createWebHistory(), routes: [ { @(4): '/fish', @(9): FishTypes } ] }); const app = createApp(App) app.use(router); app.mount('#app')
import { createApp } from 'vue' import { createRouter, createWebHistory } from 'vue-router' import App from './App.vue' import FishTypes from './components/FishTypes.vue' const router = createRouter({ history: createWebHistory(), routes: [ { path: '/fish', component: FishTypes } ] }); const app = createApp(App) app.use(router); app.mount('#app') 不正确点击这里重新尝试。 正确!下一题 ❯ |
这将重置所有 54 个练习的分数。
您确定要继续吗?