This commit is contained in:
张成
2025-10-10 00:08:35 +08:00
parent 88cd8d6e72
commit f86ee00e3b
15 changed files with 72 additions and 403 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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,
}

View File

@@ -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,
}