AngularScreenshot-无法获取UI网格内容的屏幕截图

时间:2018-09-10 07:22:45

标签: angular screenshot angular-ui-grid

我已经实现了Angular屏幕截图npm模块,我能够拍摄屏幕截图并正确发送图像以获取正常内容。但是,我无法获得UI网格实现的屏幕截图。 UI网格内容通过执行一系列API调用来动态获取。 它给了我下面的错误:

cannot fetch resource: http://localhost:8080/css/ui-grid.svg?#ui-grid, status: 404
fail @ vendor-2e7cab950d.js:20317
done @ vendor-2e7cab950d.js:20300
XMLHttpRequest.send (async)
(anonymous) @ vendor-2e7cab950d.js:20294
getAndEncode @ vendor-2e7cab950d.js:20286
Promise.then (async)
inline @ vendor-2e7cab950d.js:20402
(anonymous) @ vendor-2e7cab950d.js:20424
Promise.then (async)
(anonymous) @ vendor-2e7cab950d.js:20423
(anonymous) @ vendor-2e7cab950d.js:20422
Promise.then (async)
inlineAll @ vendor-2e7cab950d.js:20420
resolve @ vendor-2e7cab950d.js:20492
(anonymous) @ vendor-2e7cab950d.js:20449
(anonymous) @ vendor-2e7cab950d.js:20448
Promise.then (async)
resolveAll @ vendor-2e7cab950d.js:20446
embedFonts @ vendor-2e7cab950d.js:20133
Promise.then (async)
toSvg @ vendor-2e7cab950d.js:19895
draw @ vendor-2e7cab950d.js:19973
toPng @ vendor-2e7cab950d.js:19943
(anonymous) @ vendor-2e7cab950d.js:15266
(anonymous) @ vendor-2e7cab950d.js:10808
e @ vendor-2e7cab950d.js:10693
(anonymous) @ vendor-2e7cab950d.js:10696
setTimeout (async)
k.defer @ vendor-2e7cab950d.js:10696
f @ vendor-2e7cab950d.js:10808
download @ vendor-2e7cab950d.js:15261
fn @ VM34805:4
b @ vendor-2e7cab950d.js:10775
e @ vendor-2e7cab950d.js:10929
$eval @ vendor-2e7cab950d.js:10794
$apply @ vendor-2e7cab950d.js:10795
(anonymous) @ vendor-2e7cab950d.js:10929
dispatch @ vendor-2e7cab950d.js:5183
elemData.handle @ vendor-2e7cab950d.js:4991




 Event {isTrusted: true, type: "error", target: img, currentTarget: img, eventPhase: 2, …}
bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: null
defaultPrevented: false
eventPhase: 0
isTrusted: true
path: [img]
returnValue: true
srcElement: null
target: null
timeStamp: 72291.29999998258
type: "error"
__proto__: Event

0 个答案:

没有答案