提交 6e21a5e0 authored 作者: lihuihui's avatar lihuihui

update

上级 b215f671
......@@ -18,3 +18,7 @@ $ npm run generate
```
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
......@@ -4,14 +4,18 @@
<div class="foot-content">
<div class="left-content">
<div>
教育部涉外监管网
<a href="http://jsj.moe.gov.cn" target="_blank" >
教育部涉外监管网
</a>
</div>
<div>
五道口官网
<a href="http://www.pbcsf.tsinghua.edu.cn" target="_blank" >
五道口官网
</a>
</div>
<div>
<!-- <div>
合作大学官网
</div>
</div> -->
</div>
<div class="center-content">
<div class="address">&nbsp;&nbsp;&nbsp;&nbsp;址:北京市海淀区中关村东路1号院清华科技园7号楼5层</div>
......@@ -26,9 +30,9 @@
</div>
</div>
</div>
<div class="links">
<!-- <div class="links">
友情链接:中国人民银行 中国涉外监管网 中国银行协会 中国证券投资基金业协会
</div>
</div> -->
</div>
<div class="copyright" style="height: 40px;line-height: 40px;color: rgba(153, 153, 153, 1);background: #fff;">
<div class="inner" style="width: 100%;justify-content: center;display: flex;">
......
import path from 'path'
import fs from 'fs'
let config = {}
if (process.env.NODE_ENV === 'production') {
config = {
server: { port: 2048, host: '0.0.0.0', timing: false },
axios: {
baseURL: 'https://project-api.ezijing.com/api',
}
}
} else {
config = {
axios: {
proxy: true
},
server: {
port: 3000,
host: 'dev.ezijing.com',
timing: false,
https: {
key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')),
cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem'))
}
},
proxy: {
'/api': {
target: 'https://project-api.ezijing.com/api',
selfHandleResponse: false,
secure: false,
changeOrigin: true,
followRedirects: true,
logLevel: 'info',
headers: {
'Referer': 'https://project-api.ezijing.com/api'
},
pathRewrite: {
'^/api': '/'
}
}
}
}
}
export default {
...config,
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: '紫荆教育-在线MBA课程-MBA在线课程-专业金融在线教育品牌',
......@@ -60,33 +101,21 @@ export default {
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: [/^element-ui/],
},
axios: {
proxy: true
},
server: {
https: {
key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')),
cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem'))
}
// port: 2048,
// host: '0.0.0.0',
// timing: false
},
proxy: {
'/api': {
target: 'https://project-api.ezijing.com/api',
selfHandleResponse: false,
secure: false,
changeOrigin: true,
followRedirects: true,
logLevel: 'info',
headers: {
'Referer': 'https://project-api.ezijing.com/api'
},
pathRewrite: {
'^/api': '/'
}
}
}
// proxy: {
// '/api': {
// target: 'https://project-api.ezijing.com/api',
// selfHandleResponse: false,
// secure: false,
// changeOrigin: true,
// followRedirects: true,
// logLevel: 'info',
// headers: {
// 'Referer': 'https://project-api.ezijing.com/api'
// },
// pathRewrite: {
// '^/api': '/'
// }
// }
// }
}
......@@ -25,11 +25,5 @@
"@nuxtjs/proxy": "^2.1.0",
"sass": "^1.32.11",
"sass-loader": "^10.1.1"
},
"config": {
"nuxt": {
"host": "dev.ezijing.com",
"port": 3000
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论