Files
dcalc/frontendNew/src/api/calc/index.ts
T
imelonandCopilot 01b648a3e7 dev
Co-authored-by: Copilot <copilot@github.com>
2026-05-05 18:59:06 +08:00

13 lines
371 B
TypeScript

import type { IConfig } from '@/stores'
import { defineRequest } from '../common'
import type { IResult } from './type'
export default defineRequest((request) => {
return {
async calc(config: IConfig) {
const res = await request.post<IResult>('/calc', config)
return res.data
},
}
})
// Compare this snippet from frontend/src/api/common/index.ts: