File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
require ( './bootstrap' ) ;
8
- import 'babel-polyfill' ;
9
8
import axios from 'axios' ;
9
+ import 'babel-polyfill' ;
10
10
import BootstrapVue from 'bootstrap-vue' ;
11
11
import VCalendar from 'v-calendar' ;
12
12
import 'v-calendar/lib/v-calendar.min.css' ;
@@ -49,6 +49,16 @@ const router = new VueRouter({
49
49
] ,
50
50
} ) ;
51
51
52
+ // https://github.com/vuejs/vue-router/issues/1849#issuecomment-340767577
53
+ if ( '-ms-scroll-limit' in document . documentElement . style && '-ms-ime-align' in document . documentElement . style ) { // detect it's IE11
54
+ window . addEventListener ( "hashchange" , function ( event ) {
55
+ var currentPath = window . location . hash . slice ( 1 ) ;
56
+ if ( router . currentRoute . path !== currentPath ) {
57
+ router . push ( currentPath ) ;
58
+ }
59
+ } , false ) ;
60
+ }
61
+
52
62
axios . defaults . headers . common . Accept = 'application/json' ;
53
63
54
64
/**
You can’t perform that action at this time.
0 commit comments