From 96cf231cbd0b7f6e97ae4965488476ac87970a0c Mon Sep 17 00:00:00 2001
From: Frost-ZX <30585462+Frost-ZX@users.noreply.github.com>
Date: Sun, 23 May 2021 23:35:58 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B1=9E=E6=80=A7=E9=A1=BA?=
=?UTF-8?q?=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/About.vue | 10 +++++-----
src/views/Home.vue | 10 +++++-----
src/views/Settings.vue | 10 +++++-----
src/views/Tools.vue | 28 ++++++++++++++--------------
src/views/ToolsDetail.vue | 16 ++++++++--------
5 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/src/views/About.vue b/src/views/About.vue
index d2b11b4..edf184d 100644
--- a/src/views/About.vue
+++ b/src/views/About.vue
@@ -42,6 +42,11 @@
diff --git a/src/views/Home.vue b/src/views/Home.vue
index a1c6bfa..cd40bf3 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -120,6 +120,11 @@ export default {
components: {
Icon
},
+ beforeRouteEnter(to, from, next) {
+ next(vm => {
+ vm.utils.changeTitle();
+ });
+ },
data() {
return {
config: this.$root.config.storage,
@@ -165,11 +170,6 @@ export default {
}
}
},
- beforeRouteEnter(to, from, next) {
- next(vm => {
- vm.utils.changeTitle();
- });
- },
methods: {
/**
diff --git a/src/views/Settings.vue b/src/views/Settings.vue
index f33a978..4eb1e0f 100644
--- a/src/views/Settings.vue
+++ b/src/views/Settings.vue
@@ -35,17 +35,17 @@
diff --git a/src/views/ToolsDetail.vue b/src/views/ToolsDetail.vue
index 0007878..28d38ef 100644
--- a/src/views/ToolsDetail.vue
+++ b/src/views/ToolsDetail.vue
@@ -9,13 +9,6 @@ import navTools from '@/assets/js/navTools.js';
export default {
name: 'ToolsDetail',
- data() {
- return {
- utils: this.$root.utils,
- toolList: navTools,
- toolElem: null
- }
- },
beforeRouteEnter(to, from, next) {
next(vm => {
var params = vm.$route.params;
@@ -49,7 +42,14 @@ export default {
return elem;
});
});
- }
+ },
+ data() {
+ return {
+ utils: this.$root.utils,
+ toolList: navTools,
+ toolElem: null
+ }
+ },
}