12345678910111213141516171819202122232425262728293031323334353637 |
- <template>
- <div id="app">
- <router-view />
- </div>
- </template>
- <script>
- export default {
- name: 'App',
- watch: {
- $route: {
-
- handler: function (val) {
- const path = val.path.split('/')
- if (path.length <= 2) {
- sessionStorage.removeItem('collectionData')
- sessionStorage.removeItem('editIBMMQ')
- }
- this.$store.dispatch("auth/changeAuthMsg", []);
- this.$store.dispatch("auth/changeAuthArrs", []);
- this.$store.dispatch("auth/changeAuthList", []);
- this.$store.dispatch("auth/changeAuthId", null);
- this.$store.dispatch("auth/changeAuthStatus", []);
- },
- deep: true
- }
- }
- }
- </script>
|