fix(admin): pricing table toTime import and swap support/config menu order

Fix ReferenceError in store price sync log columns and place پیکربندی before چت پشتیبانی in the header menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 14:11:27 +03:30
co-authored by Cursor
parent 46c397804f
commit ba4557c526
3 changed files with 5 additions and 5 deletions
@@ -1,5 +1,5 @@
import type { BaseTableColumn } from '@core/type/baseTable' import type { BaseTableColumn } from '@core/type/baseTable'
import { toJalali } from '@core/utils/useDataTime' import { toJalali, toTime } from '@core/utils/useDataTime'
import { usePrice } from '@core/utils/usePrice' import { usePrice } from '@core/utils/usePrice'
const SOURCE_LABELS: Record<string, string> = { const SOURCE_LABELS: Record<string, string> = {
@@ -46,14 +46,14 @@ export const storePriceColumns: BaseTableColumn[] = [
dataIndex: 'created_at', dataIndex: 'created_at',
key: 'created_at', key: 'created_at',
type: 'DateTime', type: 'DateTime',
customRender: (record: any) => toJalali(record.record.created_at) customRender: ({ record }) => toJalali(record.created_at)
}, },
{ {
title: 'زمان', title: 'زمان',
dataIndex: 'created_at', dataIndex: 'created_at',
key: 'time_at', key: 'time_at',
type: 'DateTime', type: 'DateTime',
customRender: (record: any) => toTime(record.record.created_at) customRender: ({ record }) => toTime(record.created_at)
}, },
{ {
title: 'عملیات', title: 'عملیات',
+1 -1
View File
@@ -15,7 +15,7 @@ const Setting: RouteRecordRaw = {
disabled: false, disabled: false,
hideMenu: false, hideMenu: false,
hideChildren: true, hideChildren: true,
order: 7 order: 7.5
}, },
children: [ children: [
{ {
+1 -1
View File
@@ -12,7 +12,7 @@ const support: RouteRecordRaw = {
disabled: false, disabled: false,
hideMenu: false, hideMenu: false,
hideChildren: true, hideChildren: true,
order: 7.5, order: 7,
}, },
children: [ children: [
{ {