added gholak
This commit is contained in:
@@ -6,12 +6,13 @@ import type { TableOutput } from '@/models/table'
|
||||
import { getProductInventory } from '@/api/products'
|
||||
|
||||
export const useFundUserStore = defineStore('fund', () => {
|
||||
/** داراییها / موجودی محصول (صفحهٔ /fund فعلی) */
|
||||
const myFunds = ref<TableOutput<Fund> | undefined>(undefined)
|
||||
/** قلکهای واقعی (مدل Fund) */
|
||||
const myPiggyFunds = ref<TableOutput<Fund> | undefined>(undefined)
|
||||
|
||||
async function getMyFund() {
|
||||
try {
|
||||
// داراییها — inventory؛ سازگار با صفحهٔ /fund
|
||||
myFunds.value = await getProductInventory()
|
||||
return myFunds.value
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user