From 2af18aa23c392bca7c6c18a5758aa7cfe0c484ed Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 14 Nov 2024 13:55:14 +0800 Subject: [PATCH] fix --- src/components/upload/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/upload/config.js b/src/components/upload/config.js index 77a573c..1216d71 100644 --- a/src/components/upload/config.js +++ b/src/components/upload/config.js @@ -4,7 +4,8 @@ export default async function () { try { - const RE = localStorage.getItem('osc') + let RE = localStorage.getItem('osc') + if (RE) RE = JSON.parse(RE) return RE ? { // oss账号信息 config: {