调整前端端口
This commit is contained in:
parent
d70a8e3340
commit
025450a631
@ -3,4 +3,4 @@ ENV = 'development'
|
|||||||
|
|
||||||
# base api
|
# base api
|
||||||
# VUE_APP_BASE_API = '/dev-api'
|
# VUE_APP_BASE_API = '/dev-api'
|
||||||
VUE_APP_BASE_API = 'http://192.168.31.67:8200'
|
VUE_APP_BASE_API = 'http://152.136.42.114:8200'
|
||||||
|
@ -3,5 +3,5 @@ ENV = 'production'
|
|||||||
|
|
||||||
# base api
|
# base api
|
||||||
#VUE_APP_BASE_API = '/prod-api'
|
#VUE_APP_BASE_API = '/prod-api'
|
||||||
VUE_APP_BASE_API = 'http://192.168.31.67:8200'
|
VUE_APP_BASE_API = 'http://152.136.42.114:8200'
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
app.listen(port, function () {
|
app.listen(port, function () {
|
||||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
console.log(chalk.green(`> Preview at http://152.136.42.114:${port}${publicPath}`))
|
||||||
if (report) {
|
if (report) {
|
||||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
console.log(chalk.green(`> Report at http://152.136.42.114:${port}${publicPath}report.html`))
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -20,5 +20,5 @@ module.exports = {
|
|||||||
'lcov',
|
'lcov',
|
||||||
'text-summary'
|
'text-summary'
|
||||||
],
|
],
|
||||||
testURL: 'http://localhost/'
|
testURL: 'http://152.136.42.114/'
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name localhost;
|
server_name 152.136.42.114;
|
||||||
|
|
||||||
access_log /var/log/nginx/host.access.log main;
|
access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 接口API地址
|
// 接口API地址
|
||||||
BASE_API: 'http://localhost:8203',
|
BASE_API: 'http://152.136.42.114:8200',
|
||||||
|
|
||||||
skuInfo: defaultForm,
|
skuInfo: defaultForm,
|
||||||
saveBtnDisabled: false,
|
saveBtnDisabled: false,
|
||||||
@ -328,13 +328,13 @@ export default {
|
|||||||
|
|
||||||
// 图片回显
|
// 图片回显
|
||||||
this.skuInfo.skuImagesList.forEach(item => {
|
this.skuInfo.skuImagesList.forEach(item => {
|
||||||
const obj = new Object()
|
const obj = {}
|
||||||
obj.url = item.imgUrl
|
obj.url = item.imgUrl
|
||||||
this.fileList.push(obj)
|
this.fileList.push(obj)
|
||||||
})
|
})
|
||||||
|
|
||||||
this.skuInfo.skuPosterList.forEach(item => {
|
this.skuInfo.skuPosterList.forEach(item => {
|
||||||
const obj = new Object()
|
const obj = {}
|
||||||
obj.url = item.imgUrl
|
obj.url = item.imgUrl
|
||||||
this.filePosterList.push(obj)
|
this.filePosterList.push(obj)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user