|
@@ -95,7 +95,7 @@
|
|
<el-form-item label="新闻封面">
|
|
<el-form-item label="新闻封面">
|
|
<el-upload
|
|
<el-upload
|
|
ref='upload'
|
|
ref='upload'
|
|
- action="http://192.168.1.199:18083/newsmess/save_news"
|
|
|
|
|
|
+ action="http://192.168.1.199:18083/app/photo"
|
|
list-type="picture-card"
|
|
list-type="picture-card"
|
|
:on-preview="handlePreview"
|
|
:on-preview="handlePreview"
|
|
:on-remove="handleRemove"
|
|
:on-remove="handleRemove"
|
|
@@ -311,7 +311,8 @@ export default {
|
|
photo: '',
|
|
photo: '',
|
|
quillUpdateImg: false,
|
|
quillUpdateImg: false,
|
|
// serverUrl: '',
|
|
// serverUrl: '',
|
|
- serverUrl: 'http://localhost:8088/api/app/upload', // 这里写你要上传的图片服务器地址
|
|
|
|
|
|
+ serverUrl: 'http://192.168.1.199:30001/api/app/upload',
|
|
|
|
+ // 这里写你要上传的图片服务器地址
|
|
header: {Authorization: 'Bearer ' + sessionStorage.token}, //有的图片服务器要求请求头需要有token之类的参数,写在这里
|
|
header: {Authorization: 'Bearer ' + sessionStorage.token}, //有的图片服务器要求请求头需要有token之类的参数,写在这里
|
|
detailContent: '', // 富文本内容
|
|
detailContent: '', // 富文本内容
|
|
editorOption: {
|
|
editorOption: {
|
|
@@ -586,6 +587,7 @@ export default {
|
|
console.log(file);
|
|
console.log(file);
|
|
},
|
|
},
|
|
handleSuccess (a) {
|
|
handleSuccess (a) {
|
|
|
|
+ // console.log(this.formList.photo)
|
|
this.formList.photo = a.raw;
|
|
this.formList.photo = a.raw;
|
|
if(a !== '') {
|
|
if(a !== '') {
|
|
this.flag = 1
|
|
this.flag = 1
|