去除省份地址包
This commit is contained in:
parent
2c90e96c5f
commit
16100d1ffa
|
@ -56,7 +56,6 @@
|
|||
"electron-log": "^5.1.7",
|
||||
"electron-store": "8.0.0",
|
||||
"electron-updater": "^6.1.7",
|
||||
"element-china-area-data": "^6.1.0",
|
||||
"element-plus": "^2.8.0",
|
||||
"fabric": "^5.3.0",
|
||||
"file-saver": "^2.0.5",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.100.0.min.js"></script>
|
||||
<!-- <script src="https://sdk.amazonaws.com/js/aws-sdk-2.100.0.min.js"></script>-->
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -70,6 +70,21 @@ VMdPreview.use(githubTheme, {
|
|||
}
|
||||
})()
|
||||
|
||||
|
||||
let script = document.createElement('script');
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
const isNode = typeof require !== 'undefined' // 是否支持node函数
|
||||
const path = isNode?require('path'):{}
|
||||
// 设置 src 属性
|
||||
script.src = path.join(__dirname, "/lib/build/aws-sdk-2.100.0.min.js");
|
||||
}else {
|
||||
script.src = "https://sdk.amazonaws.com/js/aws-sdk-2.100.0.min.js";
|
||||
}
|
||||
// 设置 async 属性,让脚本异步加载
|
||||
script.async = false;
|
||||
// 将 script 元素添加到文档的 head 元素中
|
||||
document.head.appendChild(script);
|
||||
|
||||
app.use(router)
|
||||
.use(store)
|
||||
.use(ElementPlus, { locale: zhLocale })
|
||||
|
|
Loading…
Reference in New Issue