This commit is contained in:
yanran200730
2023-02-13 18:08:35 +08:00
2 changed files with 18 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
@@ -8,12 +8,12 @@
<title>web端应用库-展示页面</title> <title>web端应用库-展示页面</title>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js" referrerpolicy="origin"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js" referrerpolicy="origin"></script>
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js" referrerpolicy="origin"></script> <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js" referrerpolicy="origin"></script>
</head> </head>
<body> <body>
<noscript> <noscript>
<strong>We're sorry but vc-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> <strong>We're sorry but vc-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
</html> </html>

View File

@@ -33,7 +33,7 @@ class Observer {
if (res?.code == 0) { if (res?.code == 0) {
this.pending = [] this.pending = []
} }
}) }).catch(() => this.cancelOB = true)
}, 5000) }, 5000)
} }
} }
@@ -51,7 +51,7 @@ class Observer {
this.addEventListener("readystatechange", function () { this.addEventListener("readystatechange", function () {
if (this.readyState === 4) { if (this.readyState === 4) {
// 请求后拦截 // 请求后拦截
Observer.saveLog({ !this.cancelOB && Observer.saveLog({
url: args[1], url: args[1],
status: this.status, status: this.status,
method: args[0], method: args[0],