主页登录页
|
@ -1,5 +1,5 @@
|
|||
window.GLOBAL_CONFIG = {
|
||||
apiURL: "http://127.0.0.1:8889/face",
|
||||
apiURL: "http://192.168.1.108:8889/face",
|
||||
IMG_SERVER_URL: "http://192.168.1.133:9000",
|
||||
SOCKET_URL: "ws://127.0.0.1:8889/face/webSocketServer",
|
||||
rtspApi_URL: window.location.protocol + '//' + window.location.hostname + ':' + window.location.port,
|
||||
|
|
After Width: | Height: | Size: 747 KiB |
After Width: | Height: | Size: 375 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 299 KiB |
After Width: | Height: | Size: 438 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 546 KiB |
|
@ -112,3 +112,25 @@ export function replaceImgUrl(url) {
|
|||
return url
|
||||
}
|
||||
}
|
||||
|
||||
export function debounce(func, wait, immediate) {
|
||||
let timeout, args, context, timestamp, result
|
||||
|
||||
const later = function() {
|
||||
// 据上一次触发时间间隔
|
||||
const last = +new Date() - timestamp
|
||||
|
||||
// 上次被包装函数被调用时间间隔 last 小于设定时间间隔 wait
|
||||
if (last < wait && last > 0) {
|
||||
timeout = setTimeout(later, wait - last)
|
||||
} else {
|
||||
timeout = null
|
||||
// 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
|
||||
if (!immediate) {
|
||||
result = func.apply(context, args)
|
||||
if (!timeout) context = args = null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -98,6 +98,7 @@ export default {
|
|||
count: '209'
|
||||
}, {
|
||||
id: '2',
|
||||
|
||||
name: '设备2',
|
||||
count: '126'
|
||||
}, {
|
||||
|
|