Browse Source

bug 修复

lilei 3 years ago
parent
commit
124fe38fe5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/App.vue

+ 6 - 0
src/App.vue

@@ -33,6 +33,12 @@ export default {
     window.addEventListener('beforeunload', () => {
       sessionStorage.setItem('store', JSON.stringify(this.$store.state))
     })
+
+    this.$message.config({
+      top: `100px`,
+      duration: 2,
+      maxCount: 3
+    })
   }
 }
 </script>