1
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
actionUrl: window.rootVue.$config.apiUrl + 'sys_file/upload_oos_img',
|
||||
actionUrl: this.config.apiUrl + 'sys_file/upload_oos_img',
|
||||
cropper: null,
|
||||
insideSrc: '',
|
||||
file: null,
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
reader.onload = async (event) => {
|
||||
this.getSize(event.srcElement.result).then(({ width, height }) => {
|
||||
if (width < 500 || height < 500) {
|
||||
rootVue.$Message.error('图片尺寸小于 500*500 ,请更换图片')
|
||||
this.$Message.error('图片尺寸小于 500*500 ,请更换图片')
|
||||
return false
|
||||
}
|
||||
this.insideSrc = event.srcElement.result
|
||||
|
||||
@@ -25,7 +25,7 @@ export default {
|
||||
this.editor = new WangEditor(domId)
|
||||
this.editor.config.uploadImgShowBase64 = true
|
||||
|
||||
this.editor.config.uploadImgServer = window.rootVue.$config.apiUrl + 'sys_file/upload_oos_img'
|
||||
this.editor.config.uploadImgServer =this.config.apiUrl + 'sys_file/upload_oos_img'
|
||||
this.editor.config.uploadImgHooks = {
|
||||
customInsert: (insertImg, result, editor) => {
|
||||
var url = result.data.path
|
||||
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
return {
|
||||
headers,
|
||||
uploadList: [],
|
||||
actionUrl: window.rootVue.$config.apiUrl + 'sys_file/upload_oos_img',
|
||||
actionUrl:this.config.apiUrl + 'sys_file/upload_oos_img',
|
||||
imgSrc: '',
|
||||
visible: false,
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
headers,
|
||||
actionUrl: window.rootVue.$config.apiUrl + 'sys_file/upload_oos_img',
|
||||
actionUrl: this.config.apiUrl + 'sys_file/upload_oos_img',
|
||||
imgUrl: '',
|
||||
visible: false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user