src/App.vue
@@ -23,6 +23,11 @@ appStore.setIsDark(isDarkTheme) } setDefaultTheme() // 注意:这里不要在 unload 时调用登出(也不要用 sendBeacon 打 /system/auth/logout)。 // 后端 logout 会把 refresh token 一并删除,导致页面刷新/关闭后重新打开时无法续期, // 只能弹「登录超时,请重新登录」并整页跳转,用户原来打开的页面全部丢失。 // 需要离开座位请用页面内的「离座」,需要结束会话请用右上角「退出系统」。 </script> <template> <ConfigGlobal :size="currentSize">