소스 검색

更新vue文件

Administrator 4 년 전
부모
커밋
d211152fa9
3개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 1
      ruoyi-ui/.env.development
  2. 3 3
      ruoyi-ui/src/settings.js
  3. 2 2
      ruoyi-ui/vue.config.js

+ 2 - 1
ruoyi-ui/.env.development

@@ -3,9 +3,10 @@ ENV = 'development'
 
 # 若依管理系统/开发环境
 VUE_APP_BASE_API = '/dev-api'
+VUE_APP_BASE_API = 'http://192.168.101.11:100'
 
 # 路由懒加载
 VUE_CLI_BABEL_TRANSPILE_MODULES = true
 
 #端口
-Port = 101
+Port = 8080

+ 3 - 3
ruoyi-ui/src/settings.js

@@ -28,7 +28,7 @@ module.exports = {
    * If you want to also use it in dev, you can pass ['production', 'development']
    */
   errorLog: 'production',
-   apiUrl: ''
-   // apiUrl: 'http://192.168.101.11:100'
-  //apiUrl: 'http://36.7.89.102:8080'
+   // apiUrl: ''
+   apiUrl: 'http://192.168.101.11:100'
+  // apiUrl: 'http://36.7.89.102:8080'
 }

+ 2 - 2
ruoyi-ui/vue.config.js

@@ -35,8 +35,8 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://36.7.89.102:8080`,
-        //  target: `http://192.168.101.11:100`,
+        // target: `http://36.7.89.102:8080`,
+         target: `http://192.168.101.11:100`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''