调整前端端口

This commit is contained in:
yovinchen 2024-03-27 20:39:43 +08:00
parent d70a8e3340
commit 025450a631
6 changed files with 13 additions and 13 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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`))
} }
}) })

View File

@ -20,5 +20,5 @@ module.exports = {
'lcov', 'lcov',
'text-summary' 'text-summary'
], ],
testURL: 'http://localhost/' testURL: 'http://152.136.42.114/'
} }

View File

@ -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;

View File

@ -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)
}) })