云文件管理系统上传组件优化

This commit is contained in:
2026-04-02 12:52:40 +08:00
parent abbc0781be
commit 5053d396f8
6 changed files with 73 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
package com.filesystem.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class IndexController {
@GetMapping({"/", "/login", "/register"})
public String forward() {
return "forward:/webapp/index.html";
}
// 捕获所有前端路由,返回 index.html 让 Vue Router 处理
@GetMapping("/desktop/**")
public String desktop() {
return "forward:/webapp/index.html";
}
}