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 { createRouter, createWebHistory } from "vue-router";
|
||||||
|
import AddCity from "../views/AddCity.vue";
|
||||||
import Weather from "../views/WeatherView.vue";
|
import Weather from "../views/WeatherView.vue";
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
@@ -7,6 +8,11 @@ const routes = [
|
|||||||
name: "Weather",
|
name: "Weather",
|
||||||
component: Weather,
|
component: Weather,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
name: "AddCity",
|
||||||
|
component: AddCity,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
|||||||
Reference in new issue
Block a user