master
刘东琪 9 months ago
parent ff4d24dd08
commit bad1a6cbea
  1. 6
      routes/index.js

@ -60,7 +60,8 @@ function loadJs(window, jsText) {
let js = '';
// 加载 页面上的js
const allScript = window.document.querySelectorAll('script[r="m"]');
allScript.forEach(script => {
for (let i = 0; i < allScript.length; i++) {
const script = allScript[i];
let attr = script.textContent;
if (attr) {
js += attr
@ -68,8 +69,7 @@ function loadJs(window, jsText) {
js += jsText
}
js += ";\n"
console.log('js 加载--->', js)
})
}
return js;
}

Loading…
Cancel
Save