diff --git a/xlcs-admin/.env.development b/xlcs-admin/.env.development index 8355d57..726757b 100644 --- a/xlcs-admin/.env.development +++ b/xlcs-admin/.env.development @@ -3,4 +3,4 @@ ENV = 'development' # base 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' diff --git a/xlcs-admin/.env.production b/xlcs-admin/.env.production index deda883..1090571 100644 --- a/xlcs-admin/.env.production +++ b/xlcs-admin/.env.production @@ -3,5 +3,5 @@ ENV = 'production' # base 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' diff --git a/xlcs-admin/build/index.js b/xlcs-admin/build/index.js index c5103f0..5156321 100644 --- a/xlcs-admin/build/index.js +++ b/xlcs-admin/build/index.js @@ -24,9 +24,9 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { ) 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) { - 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`)) } }) diff --git a/xlcs-admin/jest.config.js b/xlcs-admin/jest.config.js index 143cdc8..24a4a4d 100644 --- a/xlcs-admin/jest.config.js +++ b/xlcs-admin/jest.config.js @@ -20,5 +20,5 @@ module.exports = { 'lcov', 'text-summary' ], - testURL: 'http://localhost/' + testURL: 'http://152.136.42.114/' } diff --git a/xlcs-admin/nginx.conf b/xlcs-admin/nginx.conf index c480c0c..8b5ae34 100644 --- a/xlcs-admin/nginx.conf +++ b/xlcs-admin/nginx.conf @@ -1,7 +1,7 @@ server { listen 80; listen [::]:80; - server_name localhost; + server_name 152.136.42.114; access_log /var/log/nginx/host.access.log main; diff --git a/xlcs-admin/src/views/product/skuInfo/form.vue b/xlcs-admin/src/views/product/skuInfo/form.vue index fc212e0..39a14fc 100644 --- a/xlcs-admin/src/views/product/skuInfo/form.vue +++ b/xlcs-admin/src/views/product/skuInfo/form.vue @@ -97,10 +97,10 @@ - - - - + + + +

商品海报

{ - const obj = new Object() + const obj = {} obj.url = item.imgUrl this.fileList.push(obj) }) this.skuInfo.skuPosterList.forEach(item => { - const obj = new Object() + const obj = {} obj.url = item.imgUrl this.filePosterList.push(obj) })