删掉以后,又说data没有定义,Uncaught ReferenceError: Data is not defined,router下index.js里到底应该是怎样

import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../views/Home.vue";


const router = createRouter ({ history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            component: Home,
        },
        {
            path: "/",
            component: Data,
        },
        {
            path: "/",
            component: User,
        },
    ],
});

export default router;

你可能感兴趣的:(vue,vue)