test node command

This commit is contained in:
Kseninia Mikhaylova 2024-06-21 13:20:30 +03:00
parent 7d08aef89d
commit cb682a179f
2 changed files with 4 additions and 3 deletions

View File

@ -9,4 +9,5 @@ RUN npm install --omit=dev
COPY . /src
RUN npm run build
CMD npm run preview -- --host
# CMD npm run preview -- --host
CMD node .output/server/index.mjs

View File

@ -75,7 +75,7 @@ const submit = (e: any) => {
name: modal_data.name || `ref from site ${new Date}`,
phone: modal_data.phone,
fence_info: [
...Object.values(total_txt.value).map(el => el.join('\n')),
...Object.values(total_txt.value).map(el => el.join('\n')),
total_colors.value.join('\n')
].join('\n\n'),
})
@ -180,7 +180,7 @@ const total_txt = computed(() => {
<input type="text" placeholder="Ваше имя" v-model="modal_data.name" @keyup="validate" />
<input type="phone" placeholder="Номер телефона или e-mail" v-model="modal_data.phone"
@keypress="validateInput" @keyup="validate" />
{{total_txt.total[0]}}
{{ total_txt.total[0] }}
<div class="flex gap-4">
<button class="not-prose" :disabled="modal_form.disabled" type="submit">Отправить</button>
<button class="not-prose" type="reset" @click="toggleModal">Отмена</button>