From 72b184063d43ac2153955d5b9bcb73db6e1264ba Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期四, 10 十月 2024 11:54:04 +0800 Subject: [PATCH] 指标探索默认选择前7天 --- src/utils/util.ts | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/util.ts b/src/utils/util.ts index 3f95fee..0ec84b8 100644 --- a/src/utils/util.ts +++ b/src/utils/util.ts @@ -1,11 +1,11 @@ import { ElMessage, ElMessageBox } from 'element-plus'; import JSONbig from 'json-bigint'; + import { storeToRefs } from 'pinia'; import { unref, type Ref } from 'vue'; import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useThemeConfig } from '/@/stores/themeConfig'; import request from '/@/utils/request'; - /** * @description 褰撶鍒� JSON 涓瓨鍦ㄨ繃闀跨殑鏁板瓧鏃讹紝浣跨敤 JSONbigString 瑙f瀽锛屾暟瀛椾細杞负瀛楃涓插鐞� * 鐢ㄦ硶锛欽SONbigString.parse(jsonStr)锛� @@ -709,7 +709,6 @@ return num.toFixed(precision).replace(/\.?0+$/, ''); }; - type GetTextWidthOption = { size?: string; family?: string; @@ -735,12 +734,13 @@ return width; } - export function decodeFormData(formDataString) { const params = new URLSearchParams(formDataString); const decodedData = {}; for (const [key, value] of params) { - decodedData[key] = decodeURIComponent(value); + decodedData[key] = decodeURIComponent(value); } return decodedData; - } \ No newline at end of file +} + + -- Gitblit v1.9.3