调整前端端口
This commit is contained in:
parent
d70a8e3340
commit
025450a631
@ -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'
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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`))
|
||||
}
|
||||
|
||||
})
|
||||
|
@ -20,5 +20,5 @@ module.exports = {
|
||||
'lcov',
|
||||
'text-summary'
|
||||
],
|
||||
testURL: 'http://localhost/'
|
||||
testURL: 'http://152.136.42.114/'
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -97,10 +97,10 @@
|
||||
<el-input v-model="skuInfo.perLimit" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- <div style="background-color:#E0E0E0;width: 100%;padding: 0 10px;margin: 10px 0;"><h3>商品详情</h3></div>-->
|
||||
<!-- <el-form-item label="商品详情">-->
|
||||
<!-- <el-input v-model="skuInfo.skuDetail.detailHtml" type="textarea" :rows="10"></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <div style="background-color:#E0E0E0;width: 100%;padding: 0 10px;margin: 10px 0;"><h3>商品详情</h3></div>-->
|
||||
<!-- <el-form-item label="商品详情">-->
|
||||
<!-- <el-input v-model="skuInfo.skuDetail.detailHtml" type="textarea" :rows="10"></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<div style="background-color:#E0E0E0;width: 100%;padding: 0 10px;margin: 10px 0;"><h3>商品海报</h3></div>
|
||||
<el-form-item label="上传海报">
|
||||
<el-upload
|
||||
@ -163,7 +163,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
// 接口API地址
|
||||
BASE_API: 'http://localhost:8203',
|
||||
BASE_API: 'http://152.136.42.114:8200',
|
||||
|
||||
skuInfo: defaultForm,
|
||||
saveBtnDisabled: false,
|
||||
@ -328,13 +328,13 @@ export default {
|
||||
|
||||
// 图片回显
|
||||
this.skuInfo.skuImagesList.forEach(item => {
|
||||
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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user