Преглед на файлове

退出登录时浏览器地址去掉index字样,不然影响windy访问

xusl преди 4 месеца
родител
ревизия
26fafe7377
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cpp-ui/src/layout/components/Navbar.vue

+ 1 - 1
cpp-ui/src/layout/components/Navbar.vue

@@ -102,7 +102,7 @@ export default {
         type: 'warning'
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          location.href = '/index';
+          location.href = '/';
         })
       }).catch(() => {});
     }