zydx-plus 1.32.265 → 1.32.267
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -523,10 +523,10 @@ export default {
|
|
|
523
523
|
token = sessionStorage.getItem('sessionId')
|
|
524
524
|
}
|
|
525
525
|
const xhr = new XMLHttpRequest()
|
|
526
|
-
xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
527
|
-
xhr.setRequestHeader('Authorization', '7a129186-7e51-431d-b965-735dfed8e459')
|
|
528
|
-
|
|
529
|
-
|
|
526
|
+
// xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
527
|
+
// xhr.setRequestHeader('Authorization', '7a129186-7e51-431d-b965-735dfed8e459')
|
|
528
|
+
xhr.open('GET', '/zydx/voice/getDesKeyId')
|
|
529
|
+
xhr.setRequestHeader('Authorization', token)
|
|
530
530
|
this.error = true
|
|
531
531
|
xhr.onreadystatechange = () => {
|
|
532
532
|
if (xhr.readyState === 4) {
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
148
148
|
let pHeight = 0
|
|
149
149
|
let html = ''
|
|
150
150
|
for (let i = 0; i < data.length; i++) {
|
|
151
|
-
if(data[i]
|
|
151
|
+
if(data[i]?.firstChild?.localName === 'img') {
|
|
152
152
|
const img = data[i].firstChild
|
|
153
153
|
const imgHeight = img.offsetHeight
|
|
154
154
|
if((pHeight + imgHeight) > max) {
|