bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
screen_standard/src/router/index.js
@@ -1,19 +1,27 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import { createRouter, createWebHashHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import indexView from '../views/index.vue'
import processView from '../views/process.vue'
// console.log(import.meta.env.VITE_BASE_CONTEXT);
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.VITE_BASE_CONTEXT),
  // history: createWebHistory(import.meta.env.VITE_BASE_CONTEXT),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
      redirect: '/home',
    },
    {
      path: '/index',
      name: 'index',
      path: '/home',
      name: 'home',
      component: indexView
    },
    {
      path: '/process',
      name: 'process',
      component: processView
    }
  ]
})