diff --git a/src/models/setting.js b/src/models/setting.js index 26b7c8764e7ff2cebf9dc5464c897f1388d87b21..f1f021699970b199f7133a8d300720c22ae2bb40 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();