doc: add default path with add city component

This commit is contained in:
Leon Xu committed 2022-02-18 18:39:11 -08:00
1 parent 5743ffe3e6
commit 9ca4d3d9c5
1 file changed
+6
+6
View File
@@ -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({