From e945f07f12d8278fe9524c0f44d8ebb6d4c6194f Mon Sep 17 00:00:00 2001 From: IITII Date: Sun, 17 Sep 2023 02:30:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/EmptyLayout.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/layouts/EmptyLayout.vue b/src/layouts/EmptyLayout.vue index c7e74f8..3c71e85 100644 --- a/src/layouts/EmptyLayout.vue +++ b/src/layouts/EmptyLayout.vue @@ -9,8 +9,18 @@ */ 'use strict' +import {mapState} from 'vuex' + export default { - name: 'EmptyLayout' + name: 'EmptyLayout', + computed: { + ...mapState({ + title: state => state.common.title, + }), + }, + mounted() { + document.title = this.title + }, }