(1)route下的index.js
import {
createRouter,
createWebHistory
} from 'vue-router'
const router = createRouter({
mode: 'history',
history: createWebHistory(),
routes: [{...}]
})
then:重启
(1)route下的index.js
import {
createRouter,
createWebHistory
} from 'vue-router'
const router = createRouter({
mode: 'history',
history: createWebHistory(),
routes: [{...}]
})
then:重启