chore: deprecate function
This commit is contained in:
parent
aff61a50c4
commit
61ab59e027
1 changed files with 3 additions and 15 deletions
|
|
@ -1,23 +1,11 @@
|
|||
import { ref } from 'vue';
|
||||
import { api } from 'src/boot/axios';
|
||||
import axios from 'axios';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
/** @deprecated */
|
||||
const useOcr = defineStore('useOcrStore', () => {
|
||||
const baseUrl = import.meta.env.VITE_API_BASE_URL_OCR;
|
||||
|
||||
async function sendOcr(
|
||||
payload: {
|
||||
file: File;
|
||||
category: string;
|
||||
},
|
||||
flow?: {
|
||||
sessionId?: string;
|
||||
refTransactionId?: string;
|
||||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
async function sendOcr(payload: { file: File; category: string }) {
|
||||
const res = await axios
|
||||
.post<{
|
||||
document: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue