调整了前端接口调用防止越权

This commit is contained in:
piexlmax
2022-01-07 19:26:29 +08:00
parent 8d34adee14
commit 85ca35684c
4 changed files with 26 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
import { ref } from 'vue'
import { getFileList } from '@/api/fileUploadAndDownload'
const emit = defineEmits(['chooseImg'])
const emit = defineEmits(['enterImg'])
defineProps({
target: {
type: Object,
@@ -42,7 +42,7 @@ const chooseImg = (url, target, targetKey) => {
if (target && targetKey) {
target[targetKey] = url
}
emit('enter-img', url)
emit('enterImg', url)
drawer.value = false
}