diff --git a/src/api/static.js b/src/api/static.js
index 648392059..ae3790645 100644
--- a/src/api/static.js
+++ b/src/api/static.js
@@ -46,4 +46,33 @@ staticApi.upload = (formData, uploadProgress, cancelToken, basePath) => {
})
}
+staticApi.rename = (basePath, newName) => {
+ return service({
+ url: `${baseUrl}/rename`,
+ params: {
+ basePath: basePath,
+ newName: newName
+ },
+ method: 'post'
+ })
+}
+
+staticApi.getContent = url => {
+ return service({
+ url: `${url}`,
+ method: 'get'
+ })
+}
+
+staticApi.save = (path, content) => {
+ return service({
+ url: `${baseUrl}/files`,
+ data: {
+ path: path,
+ content: content
+ },
+ method: 'put'
+ })
+}
+
export default staticApi
diff --git a/src/views/system/developer/tabs/StaticStorage.vue b/src/views/system/developer/tabs/StaticStorage.vue
index fadfbfacd..b61ed5034 100644
--- a/src/views/system/developer/tabs/StaticStorage.vue
+++ b/src/views/system/developer/tabs/StaticStorage.vue
@@ -12,7 +12,7 @@
>上传
(createFolderModal = true)"
+ @click="handleShowCreateFolderModal({})"
>
新建文件夹
@@ -39,7 +39,7 @@
slot-scope="name"
>
{{ name }}
@@ -91,6 +91,23 @@
删除
+
+ 重命名
+
+
+ 编辑
+
@@ -126,17 +143,78 @@
+
+
+ 重命名
+
+
+
+
+
+
+
+
+
+
+ 取消
+
+ 保存
+
+
+
+
+
+
+