fix: refs #6919 use same data-key
This commit is contained in:
parent
ee00f7f5b5
commit
58d2c21e5b
|
@ -20,7 +20,7 @@ const props = defineProps({
|
|||
});
|
||||
const state = useState();
|
||||
|
||||
const orderData = computed(() => state.get('orderData'));
|
||||
const orderData = computed(() => state.get('Order'));
|
||||
|
||||
const prices = ref((props.item.prices || []).map((item) => ({ ...item, quantity: 0 })));
|
||||
const isLoading = ref(false);
|
||||
|
@ -44,7 +44,7 @@ const addToOrder = async () => {
|
|||
|
||||
state.set('orderTotal', orderTotal);
|
||||
const rows = orderData.value.rows.push(...items) || [];
|
||||
state.set('orderData', {
|
||||
state.set('Order', {
|
||||
...orderData.value,
|
||||
rows,
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ const stateStore = useStateStore();
|
|||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
const quasar = useQuasar();
|
||||
const descriptorData = useArrayData('orderData');
|
||||
const descriptorData = useArrayData('Order');
|
||||
const componentKey = ref(0);
|
||||
const tableLinesRef = ref();
|
||||
const order = ref();
|
||||
|
|
|
@ -27,7 +27,7 @@ const $props = defineProps({
|
|||
const entityId = computed(() => $props.id || route.params.id);
|
||||
const summary = ref();
|
||||
const quasar = useQuasar();
|
||||
const descriptorData = useArrayData('orderData');
|
||||
const descriptorData = useArrayData('Order');
|
||||
const detailsColumns = ref([
|
||||
{
|
||||
name: 'item',
|
||||
|
|
Loading…
Reference in New Issue