-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新建文件夹报错 #305
Comments
感谢反馈, 请问是什么版本, 什么情况下新建文件夹报错 |
刚拉取的版本。初始化项目后通过地址 http://localhost:9528/ 访问,直接新建文件夹。
但 this.$route.query.path没有值的的时候返回还会拼成"/undefined" 后台打印
|
根目录时, getQueryPath()方法返回undefined |
后端处理了undefined public String getCurrentDirectory() {
if (currentDirectory == null || "undefined".equals(currentDirectory)) {
return File.separator;
}
if (File.separator.equals("\\")) {
// Windows 系统
currentDirectory = currentDirectory.replace("/", "\\");
}
return URLUtil.decode(currentDirectory);
} |
后端有处理我把前端的修改撤回了,最早原因是新建文件夹和上传文件都报错误
经测试参数确实会报错,我是Windows开发环境。
GPT回复 |
Windows环境, 确实有些问题 |
我改成这样,测试正常了。另外Windows开发环境删除目录后不会自动刷新,需要手动刷新该目录才会从页面消失。Linux下测试没问题。 |
新建文件夹报错。
jmal-cloud-view\src\components\ShowFile\ShowFile.vue
返回undefined。
去掉换行
返回空字符串。
注释掉以下
可以正常上传。
The text was updated successfully, but these errors were encountered: