From 025450a631ccbee912ab176ecb1757bbefa8a53d Mon Sep 17 00:00:00 2001 From: yovinchen Date: Wed, 27 Mar 2024 20:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=89=8D=E7=AB=AF=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xlcs-admin/.env.development | 2 +- xlcs-admin/.env.production | 2 +- xlcs-admin/build/index.js | 4 ++-- xlcs-admin/jest.config.js | 2 +- xlcs-admin/nginx.conf | 2 +- xlcs-admin/src/views/product/skuInfo/form.vue | 14 +++++++------- 6 files changed, 13 insertions(+), 13 deletions(-) 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) })