bx-865-apps #1
|
@ -1,7 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import type { FileUploadUploadEvent } from '~/node_modules/primevue/fileupload/FileUpload.d.ts'
|
||||
import PF, { Grid } from 'pathfinding'
|
||||
import { chunks } from '~/helpers';
|
||||
|
||||
interface SvgContext {
|
||||
array: number[][],
|
||||
|
@ -110,7 +109,7 @@ const setPoint = (event: MouseEvent) => {
|
|||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<Panel header="Загрузка файла">
|
||||
<FileUpload mode="basic" name="demo" :url="`${config.public.apiBase}/api/prepare_image`" accept="image/*"
|
||||
<FileUpload mode="basic" name="demo" :url="`${config.public.apiBase}/api/floorplan`" accept="image/*"
|
||||
:maxFileSize="10000000" @upload="onUpload" @before-upload="beforeUpload" :auto="true"
|
||||
chooseLabel="Выберите файл" :disabled="loading" />
|
||||
</Panel>
|
||||
|
|
Loading…
Reference in New Issue