diff --git a/app/Http/Controllers/Api/FileController.php b/app/Http/Controllers/Api/FileController.php index bc479566..7ec579cd 100755 --- a/app/Http/Controllers/Api/FileController.php +++ b/app/Http/Controllers/Api/FileController.php @@ -509,7 +509,7 @@ class FileController extends AbstractController } // if ($file->isNnShare()) { - return Base::retError('已经处于共享目录中'); + return Base::retError('已经处于共享文件夹中'); } // if ($action == 'unshare') { diff --git a/app/Models/File.php b/app/Models/File.php index 3122542f..7f852bdb 100644 --- a/app/Models/File.php +++ b/app/Models/File.php @@ -51,21 +51,21 @@ class File extends AbstractModel /** * 是否有访问权限 - * ① 自己的目录 - * ② 共享所有人的目录 + * ① 自己的文件夹 + * ② 共享所有人的文件夹 * ③ 在指定共享人员内 * @param $userid */ public function chackAllow($userid) { if ($userid == $this->userid) { - // ① 自己的目录 + // ① 自己的文件夹 return; } $row = $this->getShareInfo(); if ($row) { if ($row->share == 1) { - // ② 共享所有人的目录 + // ② 共享所有人的文件夹 return; } elseif ($row->share == 2) { // ③ 在指定共享人员内 @@ -101,7 +101,7 @@ class File extends AbstractModel } /** - * 是否处于共享目录内(不含自身) + * 是否处于共享文件夹内(不含自身) * @return bool */ public function isNnShare() diff --git a/app/Module/Base.php b/app/Module/Base.php index c5bc04d9..b3fe5159 100755 --- a/app/Module/Base.php +++ b/app/Module/Base.php @@ -249,7 +249,7 @@ class Base } /** - * 新建目录 + * 新建文件夹 * @param $path * @return mixed */ @@ -268,7 +268,7 @@ class Base } /** - * 删除目录 + * 删除文件夹 * @param $path */ public static function deleteDir($path) @@ -277,9 +277,9 @@ class Base } /** - * 删除目录及目录下所有的文件 + * 删除文件夹及文件夹下所有的文件 * @param $dirName - * @param bool $undeleteDir 不删除目录(只删除文件) + * @param bool $undeleteDir 不删除文件夹(只删除文件) */ public static function deleteDirAndFile($dirName, $undeleteDir = false) { @@ -2129,7 +2129,7 @@ class Base $array = [ "name" => $fileName, //原文件名 "size" => Base::twoFloat($fileSize / 1024, true), //大小KB - "file" => $filePath . $fileName, //目录的完整路径 "D:\www....KzZ.jpg" + "file" => $filePath . $fileName, //文件的完整路径 "D:\www....KzZ.jpg" "path" => $fileDir . $fileName, //相对路径 "uploads/pic....KzZ.jpg" "url" => Base::fillUrl($fileDir . $fileName), //完整的URL "https://.....hhsKzZ.jpg" "thumb" => '', //缩略图(预览图) "https://.....hhsKzZ.jpg_thumb.jpg" @@ -2278,7 +2278,7 @@ class Base $array = [ "name" => $file->getClientOriginalName(), //原文件名 "size" => Base::twoFloat($fileSize / 1024, true), //大小KB - "file" => public_path($param['path'] . $fileName), //目录的完整路径 "D:\www....KzZ.jpg" + "file" => public_path($param['path'] . $fileName), //文件的完整路径 "D:\www....KzZ.jpg" "path" => $param['path'] . $fileName, //相对路径 "uploads/pic....KzZ.jpg" "url" => Base::fillUrl($param['path'] . $fileName), //完整的URL "https://.....hhsKzZ.jpg" "thumb" => '', //缩略图(预览图) "https://.....hhsKzZ.jpg_thumb.jpg" diff --git a/electron/build.js b/electron/build.js index f130de26..1f65a192 100644 --- a/electron/build.js +++ b/electron/build.js @@ -7,7 +7,7 @@ const argv = process.argv; const env = require('dotenv').config({ path: './.env' }) /** - * 删除目录及文件 + * 删除文件夹及文件 * @param path */ function deleteFile(path) { diff --git a/public/images/file/updir.svg b/public/images/file/updir.svg new file mode 100644 index 00000000..41d10e59 --- /dev/null +++ b/public/images/file/updir.svg @@ -0,0 +1 @@ + diff --git a/resources/assets/js/components/ImgUpload.vue b/resources/assets/js/components/ImgUpload.vue index 468aa951..3aea1a53 100755 --- a/resources/assets/js/components/ImgUpload.vue +++ b/resources/assets/js/components/ImgUpload.vue @@ -334,7 +334,7 @@ browseItem(item) { //点击选择图片 if (item.type === 'dir') { - //目录 + //文件夹 this.browsePicture(item.path); }else if (item.type === 'file') { //文件 diff --git a/resources/assets/js/components/MDEditor/components/pro/index.vue b/resources/assets/js/components/MDEditor/components/pro/index.vue index 72608e5f..d154f4cf 100644 --- a/resources/assets/js/components/MDEditor/components/pro/index.vue +++ b/resources/assets/js/components/MDEditor/components/pro/index.vue @@ -171,7 +171,7 @@ @mouseenter="mousescrollSide('right')">
- +