diff --git a/main/manager-web/src/App.vue b/main/manager-web/src/App.vue index 85e03471..f1d98917 100644 --- a/main/manager-web/src/App.vue +++ b/main/manager-web/src/App.vue @@ -27,6 +27,10 @@ nav { } } +.el-message { + top: 45px !important; +} + \ No newline at end of file diff --git a/main/manager-web/src/apis/httpRequest.js b/main/manager-web/src/apis/httpRequest.js index 4d8093d3..44d939e7 100755 --- a/main/manager-web/src/apis/httpRequest.js +++ b/main/manager-web/src/apis/httpRequest.js @@ -110,7 +110,7 @@ function httpHandlerError(info, callBack) { }else if (info.data.code === 401) { console.log('触发 401,清除 Token 并跳转登录页'); store.commit('clearAuth'); - window.location.href = '/login'; + goToPage(Constant.PAGE.LOGIN, true); return true } else { showDanger(info.data.msg) diff --git a/main/manager-web/src/components/AddWisdomBodyDialog.vue b/main/manager-web/src/components/AddWisdomBodyDialog.vue index 042cdbce..b0ace54f 100644 --- a/main/manager-web/src/components/AddWisdomBodyDialog.vue +++ b/main/manager-web/src/components/AddWisdomBodyDialog.vue @@ -47,7 +47,10 @@ export default { return; } userApi.addAgent(this.wisdomBodyName, (res) => { - this.$message.success('添加成功'); + this.$message.success({ + message: '添加成功', + showClose: true + }); this.$emit('confirm', res); this.$emit('update:visible', false); this.wisdomBodyName = ""; diff --git a/main/manager-web/src/components/DeviceItem.vue b/main/manager-web/src/components/DeviceItem.vue index 4ad34709..729b3d1f 100644 --- a/main/manager-web/src/components/DeviceItem.vue +++ b/main/manager-web/src/components/DeviceItem.vue @@ -20,12 +20,12 @@