Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sparesti-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2024_01
sparesti-frontend
Merge requests
!9
refactor: changed routing in index.js
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
refactor: changed routing in index.js
current-saving-challenge-component
into
development
Overview
0
Commits
5
Pipelines
1
Changes
1
Merged
Maria Elizabeth Pauna Lane
requested to merge
current-saving-challenge-component
into
development
1 year ago
Overview
0
Commits
5
Pipelines
1
Changes
1
Expand
Set path '/' to DashboardView instead of CreateSavingGoalView
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
01ff2773
5 commits,
1 year ago
1 file
+
2
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/router/index.js
+
2
−
3
Options
import
{
createWebHistory
,
createRouter
}
from
'
vue-router
'
import
HomeView
from
'
@/views/HomeView.vue
'
import
ExamplesView
from
'
@/views/ExamplesView.vue
'
import
DialogView
from
'
@/views/DialogView.vue
'
import
DropdownView
from
'
@/views/DropdownView.vue
'
import
DashboardView
from
"
@/views/DashboardView.vue
"
;
import
ProfileView
from
"
@/views/ProfileView.vue
"
;
import
CreateSavingGoalView
from
'
@/views/CreateSavingGoalView.vue
'
const
routes
=
[
{
path
:
'
/
'
,
component
:
CreateSavingGoal
View
},
{
path
:
'
/
'
,
component
:
Dashboard
View
},
{
path
:
'
/examples
'
,
component
:
ExamplesView
},
{
path
:
'
/dialog
'
,
component
:
DialogView
},
{
path
:
'
/dropdown
'
,
component
:
DropdownView
},
Loading