Browse Source

修改路由模式

liuxiaona 2 years ago
parent
commit
be1dc73ec1

+ 12 - 2
.idea/workspace.xml

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="f876064f-ad38-46e7-bf7d-9df623a9178f" name="Changes" comment="">
4
     <list default="true" id="f876064f-ad38-46e7-bf7d-9df623a9178f" name="Changes" comment="">
5
-      <change beforePath="$PROJECT_DIR$/qwh5/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/.gitignore" afterDir="false" />
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/css/app.85dd6470.css" beforeDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/favicon.ico" beforeDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/index.html" beforeDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/about.76dda73f.js" beforeDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/about.76dda73f.js.map" beforeDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/app.58bbdb7e.js" beforeDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/app.58bbdb7e.js.map" beforeDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/chunk-vendors.ec43d46e.js" beforeDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/chunk-vendors.ec43d46e.js.map" beforeDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/qwh5/src/router/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/src/router/index.ts" afterDir="false" />
6
     </list>
16
     </list>
7
     <option name="SHOW_DIALOG" value="false" />
17
     <option name="SHOW_DIALOG" value="false" />
8
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
18
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
49
       <updated>1653986562930</updated>
59
       <updated>1653986562930</updated>
50
       <workItem from="1653986566612" duration="2107000" />
60
       <workItem from="1653986566612" duration="2107000" />
51
       <workItem from="1654070934388" duration="14000" />
61
       <workItem from="1654070934388" duration="14000" />
52
-      <workItem from="1654573024055" duration="15170000" />
62
+      <workItem from="1654573024055" duration="15505000" />
53
     </task>
63
     </task>
54
     <servers />
64
     <servers />
55
   </component>
65
   </component>

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 2 - 2
qwh5/dist/js/app.58bbdb7e.js


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/app.58bbdb7e.js.map


File diff suppressed because it is too large
+ 3 - 3
qwh5/dist/js/chunk-vendors.ec43d46e.js


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/js/chunk-vendors.ac81be2e.js.map


File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/js/chunk-vendors.ec43d46e.js.map


+ 2 - 2
qwh5/src/router/index.ts

1
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
1
+import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
2
 import HomeView from '../views/HomeView.vue'
2
 import HomeView from '../views/HomeView.vue'
3
 
3
 
4
 const routes: Array<RouteRecordRaw> = [
4
 const routes: Array<RouteRecordRaw> = [
18
 ]
18
 ]
19
 
19
 
20
 const router = createRouter({
20
 const router = createRouter({
21
-  history: createWebHistory(process.env.BASE_URL),
21
+  history: createWebHashHistory(process.env.BASE_URL),
22
   routes
22
   routes
23
 })
23
 })
24
 
24