From cf3eb8aade51e277d6d732e28e89f64ac3adca6d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 23 八月 2023 16:19:51 +0800
Subject: [PATCH] 大屏
---
screen_standard/src/router/index.js | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/screen_standard/src/router/index.js b/screen_standard/src/router/index.js
index e58491f..c756cb1 100644
--- a/screen_standard/src/router/index.js
+++ b/screen_standard/src/router/index.js
@@ -1,13 +1,22 @@
-import { createRouter, createWebHistory } from 'vue-router'
+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
+ component: indexView
+ },
+ {
+ path: '/process',
+ name: 'process',
+ component: processView
}
]
})
--
Gitblit v1.9.3