mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-22 07:08:07 +00:00
调整了前端接口调用防止越权
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user