diff --git a/web/src/components/LocalStore.vue b/web/src/components/LocalStore.vue
index 67354bd5..f28167b3 100644
--- a/web/src/components/LocalStore.vue
+++ b/web/src/components/LocalStore.vue
@@ -13,7 +13,7 @@
>
@@ -53,6 +53,13 @@
width="120px"
>
+
+
+
2) {
+ return this.localFileList.filter(v => {
+ return v.name.toLowerCase().includes(this.search.toLowerCase());
+ });
+ }
+ if (this.localFileList.length > 101 && !this.loadMoreLimit) {
+ let newList = this.localFileList.slice(0, 101);
+ newList.push({
+ name: `加载更多 ${this.localFileList.length - 101} 个结果`,
+ isDirectory: true,
+ toParent: true,
+ path: false,
+ loadMore: true
+ });
+ return newList;
+ }
+ return this.localFileList;
+ }
},
watch: {
show(isVisible) {
@@ -162,7 +189,11 @@ export default {
cancel() {
this.$emit("setShow", false);
},
- showLocalStoreFile(path) {
+ showLocalStoreFile(path, loadMore) {
+ if (!path && loadMore) {
+ this.loadMoreLimit = true;
+ return;
+ }
this.localCurrentPath = path || "/";
Axios.get(this.api + "/getLocalStoreFileList", {
params: {
@@ -179,7 +210,7 @@ export default {
name: "..",
isDirectory: true,
toParent: true,
- path: "/" + paths.join("/")
+ path: "more"
});
}
this.localFileList = res.data.data;