|
@@ -169,7 +169,7 @@ export default {
|
|
code_dialog_width: 900,
|
|
code_dialog_width: 900,
|
|
advlist_bullet_styles: 'square',
|
|
advlist_bullet_styles: 'square',
|
|
advlist_number_styles: 'default',
|
|
advlist_number_styles: 'default',
|
|
- imagetools_cors_hosts: ['smoa.ndjsxh.cn:8888'],
|
|
|
|
|
|
+ imagetools_cors_hosts: ['oa.hqedust.com'],
|
|
default_link_target: '_blank',
|
|
default_link_target: '_blank',
|
|
table_default_styles: {
|
|
table_default_styles: {
|
|
width: '950px',
|
|
width: '950px',
|
|
@@ -249,7 +249,7 @@ export default {
|
|
console.log( res, file.name )
|
|
console.log( res, file.name )
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
window.tinymce.get(this.tinymceId).insertContent(
|
|
window.tinymce.get(this.tinymceId).insertContent(
|
|
- `<p><a target="_blank" style="cursor:hand;color:blue;display: block;" href="http://smoa.ndjsxh.cn:8888/preview/${res.data.filename}">${file.name}</a></p>`)
|
|
|
|
|
|
+ `<p><a target="_blank" style="cursor:hand;color:blue;display: block;" href="https://oa.hqedust.com/preview/${res.data.filename}">${file.name}</a></p>`)
|
|
} else {
|
|
} else {
|
|
this.$message.error('图片上传失败')
|
|
this.$message.error('图片上传失败')
|
|
}
|
|
}
|
|
@@ -274,7 +274,7 @@ export default {
|
|
// 上传图片
|
|
// 上传图片
|
|
axios.post(this.uploadUrl, formData, { headers: this.headers }).then(res => {
|
|
axios.post(this.uploadUrl, formData, { headers: this.headers }).then(res => {
|
|
if (res.data.code === 200) {
|
|
if (res.data.code === 200) {
|
|
- window.tinymce.get(this.tinymceId).insertContent(`<img style="width:100%" src="http://smoa.ndjsxh.cn:8888/preview/${res.data.data.filename}" >`)
|
|
|
|
|
|
+ window.tinymce.get(this.tinymceId).insertContent(`<img style="width:100%" src="https://oa.hqedust.com/preview/${res.data.data.filename}" >`)
|
|
} else {
|
|
} else {
|
|
this.$message.error('图片上传失败,联系开发人员')
|
|
this.$message.error('图片上传失败,联系开发人员')
|
|
}
|
|
}
|