fix: 独立打包后,uniapp全局库未包含的问题

This commit is contained in:
hawk86104 2025-03-20 09:08:22 +08:00
parent 9664886700
commit cf11a1b54c
4 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-03-07 09:46:12
* @LastEditors: 地虎降天龙
* @LastEditTime: 2025-03-18 09:39:59
* @LastEditTime: 2025-03-20 09:06:18
-->
<!DOCTYPE html>
<html lang="en">
@ -28,8 +28,8 @@
})()
</script>
<script src="./plugins/uniAppView/lib/jweixin-1.6.0.js"></script>
<script src="./plugins/uniAppView/lib/uni.webview.0.1.52.js"></script>
<script src="./lib/jweixin-1.6.0.js"></script>
<script src="./lib/uni.webview.0.1.52.js"></script>
</head>
<body>

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2025-03-05 11:49:24
* @LastEditors: 地虎降天龙
* @LastEditTime: 2025-03-12 08:14:29
* @LastEditTime: 2025-03-20 09:06:06
*/
export function loadJweixin () {
return new Promise((resolve, reject) => {
@ -13,7 +13,7 @@ export function loadJweixin () {
return
}
const script = document.createElement('script')
script.src = '/plugins/uniAppView/lib/jweixin-1.6.0.js'//'https://res.wx.qq.com/open/js/jweixin-1.6.0.js' // 适当更换版本
script.src = '/lib/jweixin-1.6.0.js'//'https://res.wx.qq.com/open/js/jweixin-1.6.0.js' // 适当更换版本
script.onload = () => resolve(window.wx)
script.onerror = reject
document.body.appendChild(script)
@ -27,7 +27,7 @@ export function loadWebView () {
return
}
const script = document.createElement('script')
script.src = '/plugins/uniAppView/lib/uni.webview.0.1.52.js'//'https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.0.1.52.js' // 适当更换版本
script.src = '/lib/uni.webview.0.1.52.js'//'https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.0.1.52.js' // 适当更换版本
script.onload = () => resolve(window.wx)
script.onerror = reject
document.body.appendChild(script)