From dd4ab873c163b40e9b0865f973f885725e7137ef Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 18 Jan 2023 17:40:15 +0800 Subject: [PATCH] perf: change attachment list layout to list mode (#827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 目前暂时没有缩略图功能,上传大量的大型图片很容易造成浏览器崩溃,故我们临时将附件管理的默认视图模式改为列表模式。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3167 #### Screenshots: image #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note Console 附件管理的默认视图模式改为列表模式。 ``` --- src/modules/contents/attachments/AttachmentList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/contents/attachments/AttachmentList.vue b/src/modules/contents/attachments/AttachmentList.vue index 1cf6f9dec..17f61f44e 100644 --- a/src/modules/contents/attachments/AttachmentList.vue +++ b/src/modules/contents/attachments/AttachmentList.vue @@ -241,7 +241,7 @@ const viewTypes = [ }, ]; -const viewType = useRouteQuery("view", "grid"); +const viewType = useRouteQuery("view", "list"); // Route query action const routeQueryAction = useRouteQuery("action");