mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
Update ImportCodeDialog.vue
This commit is contained in:
@@ -2,17 +2,18 @@
|
|||||||
// 输入参数
|
// 输入参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: String,
|
title: String,
|
||||||
|
dataType: String,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 定义事件
|
|
||||||
const emit = defineEmits(['update:modelValue', 'close'])
|
|
||||||
|
|
||||||
// 代码
|
// 代码
|
||||||
const codeString = ref('')
|
const codeString = ref('')
|
||||||
|
|
||||||
|
// 定义事件
|
||||||
|
const emit = defineEmits(['close', 'save'])
|
||||||
|
|
||||||
// 导入
|
// 导入
|
||||||
function handleImport() {
|
function handleImport() {
|
||||||
emit('update:modelValue', codeString.value)
|
emit('save', props.dataType, codeString)
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user