Fix clear url action in recipe creation (#1101)
This commit is contained in:
parent
1e90dc2022
commit
5e44d1c238
1 changed files with 5 additions and 3 deletions
|
@ -394,9 +394,11 @@ export default defineComponent({
|
|||
});
|
||||
|
||||
const recipeUrl = computed({
|
||||
set(recipe_import_url: string) {
|
||||
recipe_import_url = recipe_import_url.trim();
|
||||
router.replace({ query: { ...route.value.query, recipe_import_url } });
|
||||
set(recipe_import_url: string | null) {
|
||||
if (recipe_import_url !== null) {
|
||||
recipe_import_url = recipe_import_url.trim();
|
||||
router.replace({ query: { ...route.value.query, recipe_import_url } });
|
||||
}
|
||||
},
|
||||
get() {
|
||||
return route.value.query.recipe_import_url as string;
|
||||
|
|
Loading…
Reference in a new issue