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: {