litian
2024-04-24 6afa80f05bf3f001070fd8a2510ac7cde0d1d15d
src/router/index.ts
@@ -1,10 +1,10 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import Layout from '@/layout/layout.vue'
const Home = () => import('@/views/home.vue')
const Login = () => import('@/views/login.vue')
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
@@ -23,7 +23,7 @@
          path: '/home',
          name: 'home',
          meta: { auth: true },
          component: Home
          component: Home,
        }
      ]
    }