feat:修改文件上传,白板关闭不影响其他用户等

This commit is contained in:
leilei
2025-11-10 17:55:52 +08:00
parent df359d01cc
commit 6fbe53009c
23 changed files with 17128 additions and 1623 deletions

View File

@@ -50,10 +50,9 @@ const redirect = ref(undefined);
const loginView = ref(true)
// 监听路由变化,获取重定向参数
// watch(() => route, (newRoute) => {
// redirect.value = newRoute.query && newRoute.query.redirect;
// console.log('重定向路径:', redirect.value);
// }, { immediate: true });
watch(() => route, (newRoute) => {
redirect.value = newRoute.query && newRoute.query.redirect;
}, { immediate: true });
const loginForm = ref({
username: '',
@@ -107,10 +106,9 @@ const loading = ref(false)
* 处理登录成功后的跳转逻辑
*/
async function handleLoginSuccess() {
try {
try {
// 如果有重定向路径且不是登录页,则跳转到重定向页面
if (redirect.value && redirect.value !== '/login') {
console.log('跳转到重定向页面:', redirect.value);
if (redirect.value && redirect.value !== '/login') {
// 确保路由存在,如果不存在则跳转到默认页面
try {