-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add proper use of vue router and fix some small vue conventions
- Loading branch information
1 parent
b36a6ed
commit e0716fd
Showing
8 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import { createMemoryHistory, createRouter } from 'vue-router'; | ||
|
||
import { createRouter, createWebHistory } from 'vue-router'; | ||
import CraftRouter from './CraftRouter.vue'; | ||
|
||
const routes = [{ path: '/:pathMatch(.*)*', name: 'CraftRouter', component: CraftRouter }]; | ||
|
||
const router = createRouter({ | ||
history: createMemoryHistory(), | ||
routes, | ||
export const router = createRouter({ | ||
history: createWebHistory(), | ||
routes: [{ path: '/:pathMatch(.*)*', component: CraftRouter }], | ||
}); | ||
|
||
export default router; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.