套装相关
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { IConfig } from '@/stores'
|
||||
import { defineRequest } from '../common'
|
||||
export default defineRequest((request) => {
|
||||
return {
|
||||
async calc(config: IConfig) {
|
||||
const res = await request.post('/calc', config)
|
||||
return res.data
|
||||
}
|
||||
}
|
||||
})
|
||||
// Compare this snippet from frontend/src/api/common/index.ts:
|
||||
@@ -1,3 +1,4 @@
|
||||
import info from './info'
|
||||
import calc from './calc'
|
||||
|
||||
export default { ...info }
|
||||
export default { ...info, ...calc }
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface IEquipment {
|
||||
itemDetailType: string
|
||||
name: string
|
||||
categorize:string
|
||||
suit: number[]
|
||||
suit: string[]
|
||||
rarity:string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user