網站首頁 Vue 正文
根目錄下的vue.config.js文件配置下面沒有備注的內容,如果沒有vue.config.js文件可以手動創建一個復制下面代碼!
module.exports = {
// outputDir: 'dist', //build輸出目錄
// assetsDir: 'assets', //靜態資源目錄(js, css, img)
// lintOnSave: false, //是否開啟eslint
devServer: {
// open: true, //是否自動彈出瀏覽器頁面
// host: "localhost",
// port: '8081',
// https: false, //是否使用https協議
// hotOnly: false, //是否開啟熱更新
// proxy: null,
proxy: {
'/ea55_api': {
target: 'http://127.0.0.1:8085/index.php', //API服務器的地址
ws: true, //代理websockets
changeOrigin: true, // 虛擬的站點需要更管origin
pathRewrite: { //重寫路徑 比如'/api/aaa/ccc'重寫為'/aaa/ccc'
'^/ea55_api': ''
}
}
},
}
}
原文鏈接:https://blog.csdn.net/wanmeifengfeng/article/details/115767984
相關推薦
- 2023-05-06 Go語言中Slice常見陷阱與避免方法詳解_Golang
- 2022-09-01 C#通過System.CommandLine快速生成支持命令行的應用程序_C#教程
- 2022-05-27 C++?動態規劃算法使用分析_C 語言
- 2023-04-07 Android開發基礎簡化Toast調用方法詳解_Android
- 2022-07-17 用Android?studio實現簡易計算器功能_Android
- 2022-03-18 webpack的懶加載和預加載詳解(webpack按需加載)
- 2023-01-14 詳解C#如何實現屏幕放大和取色功能_C#教程
- 2022-04-03 基于QT5實現一個時鐘桌面_C 語言
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支