code refactor

This commit is contained in:
MaysWind
2024-06-29 17:12:02 +08:00
parent c951285049
commit d9c8142c51
10 changed files with 64 additions and 60 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/setting.js';
import colorConstants from '@/consts/color.js';
import { formatPercent } from '@/lib/common.js';
import { formatPercent } from '@/lib/numeral.js';
export default {
props: [
+2 -1
View File
@@ -66,7 +66,8 @@
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/setting.js';
import { isString, appendThousandsSeparator } from '@/lib/common.js';
import { isString } from '@/lib/common.js';
import { appendThousandsSeparator } from '@/lib/numeral.js';
import { numericCurrencyToString, stringCurrencyToNumeric } from '@/lib/currency.js';
export default {
+1 -1
View File
@@ -81,7 +81,7 @@ import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/setting.js';
import colorConstants from '@/consts/color.js';
import { formatPercent } from '@/lib/common.js';
import { formatPercent } from '@/lib/numeral.js';
export default {
props: [