fix: update router component, name, and path
This commit is contained in:
1 parent
959c10d5a6
commit
5743ffe3e6
1 file changed
+4
-4
+4
-4
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user