react :src-pages-document.ejs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>
<%= context.title %>
</title>
//此处是引入的Vconsole.min.js
<script crossorigin="anonymous" integrity="sha384-Syuu42tkQgszyxNSHWSh4xouXRhTwTLEj9qTUCa3YPdoZYLOIGmFq6z1VTMjS8KL"
src="https://lib.baomitu.com/vConsole/3.3.0/vconsole.min.js"></script>
</script>
</head>
<body>
<div id="root"></div>
</body>
<script>
//此处使用
window.vConsole = new window.VConsole({
defaultPlugins: ['system', 'network', 'element', 'storage'], // 可以在此设定要默认加载的面板
maxLogNumber: 1000,
onReady: function () {
// console.log('vConsole is ready.');
},
onClearLog: function () {
// console.log('on clearLog');
}
});
</script>
</html>
vue:public-index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="x5-orientation" content="portrait">
<meta name="screen-orientation" content="portrait">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico" type="text/css"> -->
<title>益肾相守</title>
</head>
<body class="bodyContain">
<noscript>
<strong>We're sorry but hello-world doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
</body>
<!-- <script src="https://cdn.ronghub.com/RongIMLib-3.0.0-dev.min.js"></script> -->
//此处是引入的Vconsole.min.js
<script crossorigin="anonymous" integrity="sha384-Syuu42tkQgszyxNSHWSh4xouXRhTwTLEj9qTUCa3YPdoZYLOIGmFq6z1VTMjS8KL"
src="https://lib.baomitu.com/vConsole/3.3.0/vconsole.min.js"></script>
<script src="https://cdn.bootcss.com/echarts/4.1.0/echarts.min.js"></script>
<script src="https://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_mobile.js"></script>
<!-- <script src="https://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_mobile.js" charset="utf-8"></script> -->
<script>
//第二步配置
//此处使用
window.vConsole = new window.VConsole({
defaultPlugins: ['system', 'network', 'element', 'storage'], // 可以在此设定要默认加载的面板
maxLogNumber: 1000,
onReady: function () {
// console.log('vConsole is ready.');
},
onClearLog: function () {
// console.log('on clearLog');
}
});
</script>
</html>