release v2.0.0 #4
|
@ -72,7 +72,8 @@ export default defineComponent({
|
||||||
emits: { save: () => true, cancel: () => true },
|
emits: { save: () => true, cancel: () => true },
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
edit_drink.value = Object.assign({}, props.drink);
|
edit_drink.value = <Drink>JSON.parse(JSON.stringify(props.drink));
|
||||||
|
console.log('edit_drink', edit_drink.value)
|
||||||
});
|
});
|
||||||
|
|
||||||
const edit_drink = ref<Drink>();
|
const edit_drink = ref<Drink>();
|
||||||
|
|
Loading…
Reference in New Issue