LingxinMeng 7 月之前
父節點
當前提交
2bb24efb2a
共有 2 個文件被更改,包括 13 次插入9 次删除
  1. 5 5
      readme.md
  2. 8 4
      vue.config.js

+ 5 - 5
readme.md

@@ -1,14 +1,14 @@
 # simulation-front
 
+## 注意事项
+- 不要提交 package-lock.json 和 yarn.lock
+
 ## 启动过程
-```
+```[.env](.env)
 1. 安装 node 16.x(例如16.20.1)
 2. npm config get registry
 3. npm config set registry https://registry.npmmirror.com
-4. 删除 package-lock.json
-5. 在 package-lock.json 里确定 three版本为 0.141.0,否则无法安装依赖
-6. 安装依赖:npm install
-7. 安装指定版本的 three 替换:npm i three@0.124.0
+4. 安装依赖:npm install
 ```
 
 ### 本地启动

+ 8 - 4
vue.config.js

@@ -77,7 +77,8 @@ module.exports = {
         hot: true,
         proxy: { // 配置跨域处理 可以设置多个
             '/simulation/oauth': {
-                target: 'http://60.205.245.110:7001', // online-new
+                // target: 'http://60.205.245.110:7001', // online-new
+                target: 'http://192.168.11.221:7001', // 国汽机房
                 changeOrigin: true,
                 secure: false, // 如果是https接口,需要配置这个参数
                 pathRewrite: {
@@ -85,7 +86,8 @@ module.exports = {
                 }
             },
             '/simulation/resource/common': {
-                target: 'http://60.205.245.110:8001', // online-new
+                // target: 'http://60.205.245.110:8001', // online-new
+                target: 'http://192.168.11.221:8001', // 国汽机房
                 changeOrigin: true,
                 secure: false, // 如果是https接口,需要配置这个参数
                 pathRewrite: {
@@ -93,7 +95,8 @@ module.exports = {
                 }
             },
             '/simulation/resource/server': {
-                target: 'http://60.205.245.110:8005', // online-new
+                // target: 'http://60.205.245.110:8005', // online-new
+                target: 'http://192.168.11.221:8005', // 国汽机房
                 changeOrigin: true,
                 secure: false, // 如果是https接口,需要配置这个参数
                 pathRewrite: {
@@ -101,7 +104,8 @@ module.exports = {
                 }
             },
             '/simulation/resource/video': {
-                target: 'http://60.205.245.110:8007', // online-new
+                // target: 'http://60.205.245.110:8007', // online-new
+                target: 'http://192.168.11.221:8007', // 国汽机房
                 changeOrigin: true,
                 secure: false, // 如果是https接口,需要配置这个参数
                 pathRewrite: {