From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 06 十二月 2023 08:41:32 +0800
Subject: [PATCH] bug
---
screen_standard/src/router/index.js | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/screen_standard/src/router/index.js b/screen_standard/src/router/index.js
index 7377b96..afebefa 100644
--- a/screen_standard/src/router/index.js
+++ b/screen_standard/src/router/index.js
@@ -1,20 +1,28 @@
-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: '/',
+ redirect: '/home',
+
+ },
+ {
+ path: '/home',
name: 'home',
component: indexView
},
- // {
- // path: '/index',
- // name: 'index',
- // component: indexView
- // }
+ {
+ path: '/process',
+ name: 'process',
+ component: processView
+ }
]
})
--
Gitblit v1.9.3