Browse Source

1. 优化退出问题

MONSTER-ygh 1 năm trước cách đây
mục cha
commit
7dbc04152e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/layout/components/Navbar.vue

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

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