页面浏览量判断url为空时不进行接口调用

This commit is contained in:
hejin 2025-09-08 22:50:19 +08:00
parent c5985a5e2b
commit b1700ee531

View File

@ -11,8 +11,10 @@ export default async function ({
store.commit('SET_DEVICE', isMobile(userAgent))
let data = {
url: url,
url,
equipment: store.state.device,
}
$axios.post('/web/pageSave',data)
if (url && url !== '') {
$axios.post('/web/pageSave',data)
}
}