make model definitions more correct

This commit is contained in:
Egor Aristov 2025-02-23 17:21:04 +03:00
parent 09321d8a86
commit b45854218d
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
2 changed files with 10 additions and 9 deletions

View File

@ -65,7 +65,7 @@ Each worker can process 1 page at a time, so to scale you should run multiple wo
## Development
You need
- Go 1.23 (most of application),
- Go 1.23 (most of application)
- Node.js 20 (frontend)
- Nats (with jetstream)
- Redis

View File

@ -16,18 +16,19 @@ const field: FieldSpec = {
validate: validateOr(validateUrl, validatePreset),
}
const visible = defineModel('visible');
const {modelValue} = defineProps({
modelValue: {
type: String,
required: true,
}
const visible = defineModel('visible', {
type: Boolean,
required: true
});
const modelValue = defineModel({
type: String,
required: true
});
const emit = defineEmits(['update:modelValue', 'update:visible']);
const url = ref(modelValue);
const url = ref(modelValue.value);
watch(visible, () => {
url.value = modelValue;
url.value = modelValue.value;
});
const valid = ref(false);