diff --git a/src/views/system/deviceManage/index.vue b/src/views/system/deviceManage/index.vue index 67c09d180..ce1f709bc 100644 --- a/src/views/system/deviceManage/index.vue +++ b/src/views/system/deviceManage/index.vue @@ -207,7 +207,7 @@ export default { getDeviceDetail(row.id).then(res=>{ if (res.data) { let url = ''; - url = `${window.location.protocol}//${window.location.host}/cbtc/login?project=${row.project.toLowerCase().replaceAll(/_/, '')}&projectDevice=${row.code}&type=${row.type}`; + url = `${window.location.protocol}//${window.location.host}/cbtc/login?project=${row.project.toLowerCase().replaceAll('_', '')}&projectDevice=${row.code}&type=${row.type}`; this.url = url; this.$messageBox(); this.$confirm(`登录路径:${url}`, '登录路径', {