fix bug of pargar 4
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div class="dashboard-v2 box-border min-h-full w-full max-w-full overflow-x-hidden p-2 md:p-3">
|
||||
<a-spin :spinning="loading">
|
||||
<PargarStuckOutboundAlert v-if="pargarEnabled" compact class="mb-2" />
|
||||
|
||||
<!-- Hero -->
|
||||
<section
|
||||
class="dashboard-hero rounded-xl bg-gradient-to-l from-[#0f766e] via-[#1e3a5f] to-[#0f172a] px-3 py-2.5 text-white shadow-md"
|
||||
@@ -451,8 +453,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import DashboardLabelWithHelp from '@/pages/dashboard/components/DashboardLabelWithHelp.vue'
|
||||
import PargarStuckOutboundAlert from '@/pages/menuPages/accounting/components/PargarStuckOutboundAlert.vue'
|
||||
import DashboardQuickActionsBar from '@/pages/dashboard/components/DashboardQuickActionsBar.vue'
|
||||
import DashboardQuickWalletModal from '@/pages/dashboard/components/DashboardQuickWalletModal.vue'
|
||||
import DashboardSectionHeader from '@/pages/dashboard/components/DashboardSectionHeader.vue'
|
||||
@@ -478,6 +481,13 @@ import { metalBalanceTitle, metalLabel } from '@/utils/adminMetalLabels'
|
||||
import { formatOrderServiceFee } from '@/utils/orderServiceFee'
|
||||
import { getMainMetal } from '@/utils/metalLabels'
|
||||
import { TRADE_WEIGHT_UNIT_GRAM, TRADE_WEIGHT_UNIT_KILOGRAM } from '@/utils/weightUnit'
|
||||
import { initAccountingSettingsFromApi, pargarEnabledSetting } from '@/utils/config'
|
||||
|
||||
const pargarEnabled = pargarEnabledSetting
|
||||
|
||||
onMounted(() => {
|
||||
void initAccountingSettingsFromApi()
|
||||
})
|
||||
|
||||
const copy = {
|
||||
hero: dashboardHero,
|
||||
|
||||
Reference in New Issue
Block a user