From 931a33e049791ebd630244078ba5401df6532f81 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 22 May 2021 20:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=88=96=E8=80=85=E6=96=87=E4=BB=B6=E5=A4=B9=E5=B0=B1=E8=83=BD?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/index.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/web/index.js b/web/index.js index 65041fd..ae3bf5c 100644 --- a/web/index.js +++ b/web/index.js @@ -58,6 +58,13 @@ const component_search_folders = { `, + mounted() { + if (this.$route.query.folder_id) { + this.folder.id = parseInt(this.$route.query.folder_id) + this.folder.foldername = this.$route.query.foldername + this.get_files_in_folder() + } + }, methods: { folder_last_page() { this.folder_offset = this.folder_offset - this.folder_limit @@ -258,8 +265,8 @@ const component_file = { props: ['file'], emits: ['play_audio'], template: ` -{{ file.filename }} -{{ file.foldername }} +{{ file.filename }} +{{ file.foldername }} {{ computed_readable_size }} @@ -279,6 +286,15 @@ const component_file = { } }, methods: { + show_folder() { + this.$router.push({ + path: '/search_folders', + query: { + folder_id: this.file.folder_id, + foldername: this.file.foldername, + } + }) + }, close_dialog() { this.show_dialog = false },