From 18deb7de74b6a53521c6706046206255a4f8a532 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Tue, 21 Jan 2020 11:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=9F=E8=AE=A1=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 9bcfaca6..633d6dc7 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -39,7 +39,6 @@ export default { }, mounted () { window.setUseStats = (value) => { - localStorage.setItem('useStats', value) document.querySelector('.el-message__closeBtn').click() if (value === 1) { this.$st.sendPv('/allow_stats') @@ -48,6 +47,7 @@ export default { this.$st.sendPv('/disallow_stats') this.$st.sendEv('全局', '允许/禁止统计', '禁止') } + localStorage.setItem('useStats', value) } // first-time user