added gholak

This commit is contained in:
2026-08-03 22:36:23 +03:30
parent d6608283f6
commit 46807e3089
6 changed files with 383 additions and 262 deletions
+2 -1
View File
@@ -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) {