fix: update router component, name, and path

This commit is contained in:
Leon Xu committed 2022-02-18 18:38:07 -08:00
1 parent 959c10d5a6
commit 5743ffe3e6
1 file changed
+4 -4
+4 -4
View File
@@ -1,11 +1,11 @@
import { createRouter, createWebHistory } from "vue-router";
import WeatherView from "../views/WeatherView.vue";
import Weather from "../views/WeatherView.vue";
const routes = [
{
path: "/",
name: "weather",
component: WeatherView,
path: "/weather/:city",
name: "Weather",
component: Weather,
},
];