diff --git a/src/components/Tinymce.vue b/src/components/Tinymce.vue
index c38dcd4..ebe3971 100644
--- a/src/components/Tinymce.vue
+++ b/src/components/Tinymce.vue
@@ -38,7 +38,7 @@ import 'tinymce/plugins/wordcount'
import 'tinymce/plugins/autosave'
import '@/assets/axupimgs/plugin.js'//多图上传插件
-const emit = defineEmits(['update:value'])
+const emit = defineEmits(['update:value','getFiles'])
const props = defineProps({
//默认值
value: {
@@ -78,6 +78,7 @@ const props = defineProps({
default: 500
}
})
+const fileLists=ref([])
const content = ref(props.value);
const imgUrl = ref();
// const apiKey = reactive("v4zo4n22oanvco29ws5drh0pecuf3gh53clx53cccj3grjwg");
@@ -168,6 +169,9 @@ const init = reactive({
type: res.code === 1000 ? 'success' : 'error'
})
loading.close()
+ console.log("🚀 ~ file:res.data ", res.data)
+ fileLists.value.push(res.data)
+ emit('getFiles',fileLists.value)
const fileUrl = res.data.url;
// '?fileId='+res.data.id+
callback(fileUrl + '?fileName=' + res.data.originalFilename, {text: file.name, title: file.name});
diff --git a/src/views/article-management/add.vue b/src/views/article-management/add.vue
index e74a49f..d6cec6e 100644
--- a/src/views/article-management/add.vue
+++ b/src/views/article-management/add.vue
@@ -27,10 +27,26 @@