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