Loading src/router.js +9 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,13 @@ import { createWebHistory, createRouter } from 'vue-router'; import NotFound from './views/NotFound'; function publicPath () { if (process.env.CI_PAGES_URL) { return new URL(process.env.CI_PAGES_URL).pathname } else { return '/' } } // function publicPath () { // if (process.env.CI_PAGES_URL) { // return new URL(process.env.CI_PAGES_URL).pathname // } else { // return '/' // } // } const routes = [ { Loading Loading @@ -41,7 +41,7 @@ const routes = [ // export default router; export const router = createRouter({ history: createWebHistory(publicPath()), base: publicPath(), history: createWebHistory("/capstone-design/02/vue-router/"), base: "/capstone-design/02/vue-router/", routes, }); No newline at end of file Loading
src/router.js +9 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,13 @@ import { createWebHistory, createRouter } from 'vue-router'; import NotFound from './views/NotFound'; function publicPath () { if (process.env.CI_PAGES_URL) { return new URL(process.env.CI_PAGES_URL).pathname } else { return '/' } } // function publicPath () { // if (process.env.CI_PAGES_URL) { // return new URL(process.env.CI_PAGES_URL).pathname // } else { // return '/' // } // } const routes = [ { Loading Loading @@ -41,7 +41,7 @@ const routes = [ // export default router; export const router = createRouter({ history: createWebHistory(publicPath()), base: publicPath(), history: createWebHistory("/capstone-design/02/vue-router/"), base: "/capstone-design/02/vue-router/", routes, }); No newline at end of file