Browse Source

bug修复

PrettyCat1 10 months ago
parent
commit
82cfb1033b

+ 1 - 1
vue_project/src/api/index.js

@@ -31,7 +31,7 @@ export const registerApi = (userInfo) => {
 export const getUserInfo = () => {
   return request({
     method: "get",
-    url: "/user/getUserInfo",
+    url: "/manage/getUserInfo",
     headers: {
       "Authorization": "Bearer " + getToken(),
     }

+ 1 - 1
vue_project/src/components/indexBody.vue

@@ -928,7 +928,7 @@ export default {
         end: e.event.endStr,
       };
       editCalendarInfo(obj).then((response) => {
-        if ((response.data.status = 500)) {
+        if ((response.data.status = 500 && response.data.msg =="操作失败")) {
           ElMessage.error("没有权限,无法操作");
         } else {
           ElMessage.success("拖拽修改备注成功");

+ 2 - 0
vue_project/src/router/index.js

@@ -19,6 +19,7 @@ router.beforeEach((to, from, next) => {
     }
     else{
       next()
+      return
     }
   }
   if (to.meta.isAuth) {
@@ -35,6 +36,7 @@ router.beforeEach((to, from, next) => {
   if (to.matched.length === 0) {
     ElMessage.error("无效页面,自动返回首页")
     next("/home")
+    return
   }
   next()
 });