Browse Source

调试退出登录接口和单位修改

yanglzh 2 years ago
parent
commit
e9023a4e3d
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/layout/navBars/breadcrumb/user.vue
  2. 1 1
      src/views/heating/home/index.vue

+ 2 - 2
src/layout/navBars/breadcrumb/user.vue

@@ -159,11 +159,11 @@ export default defineComponent({
           },
           },
         })
         })
           .then(async () => {
           .then(async () => {
-            Session.clear(); // 清除缓存/token等
+            api.login.logout();
             await resetRoute(); // 删除/重置路由
             await resetRoute(); // 删除/重置路由
             ElMessage.success(t('message.user.logOutSuccess'));
             ElMessage.success(t('message.user.logOutSuccess'));
-            api.login.logout();
             setTimeout(() => {
             setTimeout(() => {
+              Session.clear(); // 清除缓存/token等
               window.location.href = ''; // 去登录页
               window.location.href = ''; // 去登录页
             }, 500);
             }, 500);
           })
           })

+ 1 - 1
src/views/heating/home/index.vue

@@ -155,7 +155,7 @@ export default defineComponent({
           unit1: 'T',
           unit1: 'T',
           contentTitle2: '总单耗',
           contentTitle2: '总单耗',
           val2: '',
           val2: '',
-          unit2: 'T/㎡',
+          unit2: 'kg/㎡',
 
 
         },
         },
       ],
       ],