test: 1
This commit is contained in:
59
public/index.html
Normal file
59
public/index.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
|
||||
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
||||
<title>
|
||||
<%= htmlWebpackPlugin.options.title %>
|
||||
</title>
|
||||
<!-- 百度瓦片地图 -->
|
||||
<!-- <% if(process.env.NODE_ENV=="development" ){%>
|
||||
<script type="text/javascript" src="http://47.108.232.77:8081/map/offlinemap/map3.0_load.js"></script>
|
||||
<%} %>
|
||||
<% if(process.env.NODE_ENV=="production" ){%>
|
||||
<script type="text/javascript" :src="`{{window.location.origin}}/bdmap/map/offlinemap/map3.0_load.js`"></script>
|
||||
<%} %> -->
|
||||
<link rel="stylesheet" href="./luckysheet/css/pluginsCss.css" />
|
||||
<link rel="stylesheet" href="./luckysheet/css/plugins.css" />
|
||||
<link rel="stylesheet" href="./luckysheet/css/luckysheet.css" />
|
||||
<link rel="stylesheet" href="./luckysheet/css/iconfont.css" />
|
||||
<script src="./luckysheet/js/plugin.js"></script>
|
||||
<script src="./luckysheet/js/luckysheet.umd.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
|
||||
properly without JavaScript enabled. Please enable it to
|
||||
continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
if (window.localStorage.getItem('env') == "development") {
|
||||
|
||||
// document.write('<script src="http://47.108.232.77:8081/map/offlinemap/map3.0_load.js" type="text/javascript" ></sc' + 'ript>');
|
||||
} else {
|
||||
// 先不用地图,需要在打开
|
||||
// document.write('<script src="' + window.location.origin + '/bdmap/offlinemap/map3.0_load.js" type="text/javascript" ></sc' + 'ript>');//云
|
||||
// document.write('<script src="http://10.92.14.136:8081/map/offlinemap/map3.0_load.js" type="text/javascript" ></sc' + 'ript>');//136
|
||||
}
|
||||
|
||||
document.documentElement.addEventListener(
|
||||
"touchmove",
|
||||
function (event) {
|
||||
if (event.touches.length > 1) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
false
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user