From 10dd1a84898061b670428d5abe8cbcb03eca898d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Tue, 29 Apr 2025 00:53:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BF=AE=E5=A4=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=9C=AA=E5=AE=8C=E5=85=A8=E5=8A=A0=E8=BD=BD=E6=97=B6?= =?UTF-8?q?=E4=BD=BF=E7=94=A8Mixly.Storage=E5=82=A8=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BC=9A=E5=AF=BC=E8=87=B4boardType=E5=80=BC=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/modules/mixly-modules/common/storage.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/modules/mixly-modules/common/storage.js b/common/modules/mixly-modules/common/storage.js index e029f3d9..40c2f060 100644 --- a/common/modules/mixly-modules/common/storage.js +++ b/common/modules/mixly-modules/common/storage.js @@ -14,7 +14,7 @@ const { const { laytpl } = layui; -const { SELECTED_BOARD } = Config; +const { BOARD } = Config; Storage.user = function (key, value) { let storagePath = path.join(LocalStorage.PATH['USER'], key); @@ -28,7 +28,7 @@ Storage.user = function (key, value) { Storage.board = function (key, value) { let storagePath = path.join(laytpl(LocalStorage.PATH['BOARD']).render({ - boardType: SELECTED_BOARD.boardType + boardType: BOARD.boardType }), key); if (arguments.length > 1) { LocalStorage.set(storagePath, value); @@ -40,8 +40,7 @@ Storage.board = function (key, value) { Storage.thirdParty = function (name, key, value) { let storagePath = path.join(laytpl(LocalStorage.PATH['THIRD_PARTY']).render({ - boardType: SELECTED_BOARD.boardType, - boardName: SELECTED_BOARD.boardName, + boardType: BOARD.boardType, thirdPartyName: name ?? 'default' }), key); if (arguments.length > 1) {