From b5568556631d8899e60215e65a20d9ab5d549165 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 28 Aug 2018 17:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=9C=80=E6=96=B0=E7=9A=84?= =?UTF-8?q?=20less.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/setting.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/setting.js b/src/models/setting.js index 26b7c876..f1f02169 100644 --- a/src/models/setting.js +++ b/src/models/setting.js @@ -21,10 +21,11 @@ const updateTheme = primaryColor => { lessConfigNode.innerHTML = ` window.less = { async: true, - env: 'production' + env: 'production', + javascriptEnabled: true }; `; - lessScriptNode.src = 'https://gw.alipayobjects.com/os/lib/less.js/2.7.3/less.min.js'; + lessScriptNode.src = 'https://gw.alipayobjects.com/os/lib/less.js/3.8.1/less.min.js'; lessScriptNode.async = true; lessScriptNode.onload = () => { buildIt(); -- GitLab