make model definitions more correct
This commit is contained in:
parent
09321d8a86
commit
b45854218d
@ -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
|
||||
|
||||
@ -16,18 +16,19 @@ const field: FieldSpec = {
|
||||
validate: validateOr(validateUrl, validatePreset),
|
||||
}
|
||||
|
||||
const visible = defineModel('visible');
|
||||
const {modelValue} = defineProps({
|
||||
modelValue: {
|
||||
const visible = defineModel('visible', {
|
||||
type: Boolean,
|
||||
required: true
|
||||
});
|
||||
const modelValue = defineModel({
|
||||
type: String,
|
||||
required: true,
|
||||
}
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user