diff --git a/ALOps_sys_fe/alops-ui/src/utils/request.js b/ALOps_sys_fe/alops-ui/src/utils/request.js
index aa4947b7..1cb32e6e 100644
--- a/ALOps_sys_fe/alops-ui/src/utils/request.js
+++ b/ALOps_sys_fe/alops-ui/src/utils/request.js
@@ -88,7 +88,10 @@ service.interceptors.response.use(res => {
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
isRelogin.show = false
store.dispatch('LogOut').then(() => {
- location.href = '/index'
+ // 使用Vue Router进行跳转,确保正确导航到登录页面
+ import('@/router').then(router => {
+ router.default.push('/login')
+ })
})
}).catch(() => {
isRelogin.show = false
diff --git a/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue b/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue
index ad42be4d..73ab094b 100644
--- a/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue
+++ b/ALOps_sys_fe/alops-ui/src/views/device/files/index.vue
@@ -51,7 +51,11 @@
type="index"
>
-
+
+
+ {{ scope.row.name }}
+
+
@@ -421,6 +425,10 @@ export default {
},
methods: {
+ /** 跳转到设备状态详情页面 */
+ goToDeviceDetail(id) {
+ this.$router.push(`/inMonitoring/devicesState-detail/detail/${id}`);
+ },
/** 查询设备列表 */
getList() {
this.loading = true