RTSP\GB28181\HIKSDK protocol video face recognition platform EasyCVR video preview console error Uncaught (in promise) NavigationDuplicated

TSINGSEE Green Rhino Video Team is constantly testing products every day. For example, our EasyCVR platform, which we launched soon, is developing and checking many new features in addition to daily testing.

EasyCVR background management video access video square V1.1.png

During the test, we found that EasyCVR accessed the video preview interface, and an error message appeared in the console. The error details were: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/video/square/1?type=1”. Although it does not affect the actual use, it cannot be left alone. Therefore, we have optimized the area.

82.png

From the error message, the error is that the same URL routing address is requested multiple times, which means that this is a redundant navigation to the current location, leading to an error message.

In response to this problem, we found the index.js file under the /router file in the EasyCVR project. Add the following code in the file:

83.png

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

The preview after modification is as follows:

84.png

EasyCVR supports cascading through the national standard GB28181 protocol platform. This function is the same as EasyGBS. Since EasyGBS is a video platform that connects to the national standard protocol front-end equipment, it has gradually become popular in recent years. If you want to test the EasyCVR or EasyGBS video platform, you can contact us directly to get a test account.

Guess you like

Origin blog.csdn.net/EasyNVS/article/details/111690745