From 505ed1181c5c341ea24de8417f3909009ac68dfa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 17 六月 2024 16:56:44 +0800 Subject: [PATCH] 2024-06-17 --- src/index.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index 7d65f61..4e4ecfd 100644 --- a/src/index.js +++ b/src/index.js @@ -280,6 +280,17 @@ } } + GLOB.dict = {} + + if (localStorage.getItem(_href + 'js_trans')) { + let js_trans = JSON.parse(localStorage.getItem(_href + 'js_trans')) + + js_trans.forEach(item => { + if (lang !== item.lang) return + GLOB.dict[item.key] = item.val + }) + } + GLOB.mkActions = {} // 鎸夐挳鏉冮檺闆� Object.defineProperty(GLOB, 'appId', { -- Gitblit v1.8.0