Sfoglia il codice sorgente

fix:修复模版html资源引用路径

guolei 1 anno fa
parent
commit
98cd8d9e2d
2 ha cambiato i file con 14 aggiunte e 14 eliminazioni
  1. 6 6
      public/index.html
  2. 8 8
      src/views/workManagement/multimodeSimulationEdit.vue

+ 6 - 6
public/index.html

@@ -5,13 +5,13 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-	<link rel="stylesheet" href="./css/notyf.min.css">
-	<link rel="stylesheet" href="./css/font-awesome.min.css">
+	<link rel="stylesheet" href="<%= BASE_URL %>css/notyf.min.css">
+	<link rel="stylesheet" href="<%= BASE_URL %>css/font-awesome.min.css">
     <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
     <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
     <title>云仿真测试系统</title>
     <title>云仿真测试系统</title>
-	<script src="./js/dat.gui.min.js"></script>
-	<script src="./js/libOpenDrive.js"></script>
-	<script src="./js/notyf.min.js"></script>
+	<script src="<%= BASE_URL %>js/dat.gui.min.js"></script>
+	<script src="<%= BASE_URL %>js/libOpenDrive.js"></script>
+	<script src="<%= BASE_URL %>js/notyf.min.js"></script>
 	<script id="idVertexShader" type="x-shader/x-vertex">
 	<script id="idVertexShader" type="x-shader/x-vertex">
 	    attribute vec4 id;
 	    attribute vec4 id;
 	    varying vec4 vId;
 	    varying vec4 vId;
@@ -70,7 +70,7 @@
       <strong>We're sorry but 仿真云平台 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
       <strong>We're sorry but 仿真云平台 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>
     </noscript>
     <div id="app"></div>
     <div id="app"></div>
-	<script src="./js/controls.js"></script>
+	<script src="<%= BASE_URL %>js/controls.js"></script>
     <!-- built files will be auto injected -->
     <!-- built files will be auto injected -->
   </body>
   </body>
 </html>
 </html>

+ 8 - 8
src/views/workManagement/multimodeSimulationEdit.vue

@@ -183,14 +183,14 @@
 			},
 			},
 			back() {
 			back() {
 
 
-				// this.$router.go(-1);
-				this.$router.push({
-					path:'/simulationEdit',
-					query:{
-						mode:'edit',
-						id:this.projectId
-					}
-				})
+				this.$router.go(-1);
+				// this.$router.push({
+				// 	path:'/simulationEdit',
+				// 	query:{
+				// 		mode:'edit',
+				// 		id:this.projectId
+				// 	}
+				// })
 			}
 			}
 		}
 		}
 	};
 	};