doc: add default path with add city component
This commit is contained in:
1 parent
5743ffe3e6
commit
9ca4d3d9c5
1 file changed
+6
@@ -1,4 +1,5 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import AddCity from "../views/AddCity.vue";
|
||||
import Weather from "../views/WeatherView.vue";
|
||||
|
||||
const routes = [
|
||||
@@ -7,6 +8,11 @@ const routes = [
|
||||
name: "Weather",
|
||||
component: Weather,
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
name: "AddCity",
|
||||
component: AddCity,
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in new issue
Block a user