From 007498ebd2451e5d6aaae05dbccbe950d3752710 Mon Sep 17 00:00:00 2001 From: Jesonhu Date: Tue, 28 Aug 2018 00:50:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=81=BF=E5=85=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E7=82=B9=E5=87=BB=20tagsView=20=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/getters.js | 3 ++- src/views/layout/components/TagsView.vue | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/store/getters.js b/src/store/getters.js index d68251fd..855247d8 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -13,6 +13,7 @@ const getters = { setting: state => state.user.setting, permission_routers: state => state.permission.routers, addRouters: state => state.permission.addRouters, - errorLogs: state => state.errorLog.logs + errorLogs: state => state.errorLog.logs, + isMobile: state => state.app.device === 'mobile' } export default getters diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 9e34baff..73a1c543 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -10,7 +10,7 @@ class="tags-view-item" @contextmenu.prevent.native="openMenu(tag,$event)"> {{ generateTitle(tag.title) }} - +
    @@ -22,6 +22,7 @@