Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-05-23 11:54:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f6c26a03db16b6304ef995daf6398de807e0f524
f6c26a03
1 parent
8bb65aa9
配置更新
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
src/settings.js
vue.config.js
src/settings.js
View file @
f6c26a0
...
...
@@ -48,7 +48,6 @@ module.exports = {
* 后端接口
*/
baseURL
:
`http://47.103.140.98:7001/iMAC`
,
// baseURL: 'http://192.168.1.133:7001/iMAC', //测试服务器
downLoadURL
:
`http://47.103.140.98:7001/iMAC`
,
/**
...
...
vue.config.js
View file @
f6c26a0
...
...
@@ -18,7 +18,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.FedEx.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.FedEx.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
"/test/"
:
"/"
,
publicPath
:
process
.
env
.
NODE_ENV
===
"production"
?
defaultSettings
.
routerBase
:
"/"
,
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir
:
'dist'
,
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
...
...
@@ -36,7 +36,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `https://imacuat.zmd.apac.fedex.com/iMAC`, //uat服务器
target
:
`http://47.103.140.98:7001/iMAC`
,
//阿里云服务器
target
:
defaultSettings
.
baseURL
,
//阿里云服务器
// target: `http://192.168.1.133:7001/iMAC`, //测试服务器
changeOrigin
:
true
,
pathRewrite
:
{
...
...
Please
register
or
login
to post a comment