From e581f9df73710d9e1d913a5b94603ff40dd7df5e Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 9 Jan 2026 10:08:47 +0800 Subject: [PATCH] refactor: `zustand/` : `urils/commons` --> `@haina/utils-commons, `@haina/utils-request`, --- src/zustand/BizOrder.js | 4 ++-- src/zustand/HostCase.js | 2 +- src/zustand/Trains.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zustand/BizOrder.js b/src/zustand/BizOrder.js index a683eb8..4ae984f 100644 --- a/src/zustand/BizOrder.js +++ b/src/zustand/BizOrder.js @@ -2,10 +2,10 @@ import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; import { immer } from 'zustand/middleware/immer'; import { groupsMappedByCode } from '../libs/ht'; -import { fetchJSON } from '../utils/request'; +import { fetchJSON } from '@haina/utils-request'; import { HT_HOST } from '../config'; import { resultDataCb } from '../components/DateGroupRadio/date'; -import { isEmpty, price_to_number } from '../utils/commons'; +import { isEmpty, price_to_number } from '@haina/utils-commons'; const defaultParams = { WebCode: 'all', IncludeTickets: 1, IncludeInternal: 1 }; diff --git a/src/zustand/HostCase.js b/src/zustand/HostCase.js index f975490..70880fa 100644 --- a/src/zustand/HostCase.js +++ b/src/zustand/HostCase.js @@ -1,7 +1,7 @@ import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; import { immer } from 'zustand/middleware/immer'; -import { fetchJSON } from '../utils/request'; +import { fetchJSON } from '@haina/utils-request'; import { HT_HOST } from '../config'; import moment from 'moment'; diff --git a/src/zustand/Trains.js b/src/zustand/Trains.js index 70ca367..cacd597 100644 --- a/src/zustand/Trains.js +++ b/src/zustand/Trains.js @@ -2,9 +2,9 @@ import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; import { immer } from 'zustand/middleware/immer'; import { groupsCTplus, groupsMappedByCode } from '../libs/ht'; -import { fetchJSON } from '../utils/request'; +import { fetchJSON } from '@haina/utils-request'; import { HT_HOST } from '../config'; -import { fixTo2Decimals, fixTo4Decimals, groupBy, isEmpty, price_to_number } from '../utils/commons'; +import { fixTo2Decimals, fixTo4Decimals, groupBy, isEmpty, price_to_number } from '@haina/utils-commons'; /** 火车票服务 */ export const SERVICETYPE_TRAINSBOOKING = '2';