quwangxin 2 жил өмнө
parent
commit
b2cc1634b3
2 өөрчлөгдсөн 7 нэмэгдсэн , 5 устгасан
  1. 7 4
      src/App.vue
  2. 0 1
      src/main.js

+ 7 - 4
src/App.vue

@@ -9,13 +9,16 @@
 
   export default {
     name: 'App',
-    created() {
+    created () {
+      console.log(
+        '我是-----------aps----应用------------------------------------'
+      );
       // 恢复主题
       this.$store.dispatch('theme/recoverTheme');
     },
     methods: {
       /* 路由切换更新浏览器标题 */
-      setDocumentTitle() {
+      setDocumentTitle () {
         updateDocumentTitle(
           this.$route,
           (key) => this.$t(key),
@@ -24,10 +27,10 @@
       }
     },
     watch: {
-      '$i18n.locale'() {
+      '$i18n.locale' () {
         this.setDocumentTitle();
       },
-      $route() {
+      $route () {
         this.setDocumentTitle();
       }
     }

+ 0 - 1
src/main.js

@@ -69,7 +69,6 @@ export async function mount (props) {
   render(props);
 }
 
-
 export async function unmount () {
   instance.$destroy();
   instance.$el.innerHTML = '';