You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create project with : vue init webpack vuejs-webpack
Add some router components in src/router/index.js as:
...
import HelloWorld from '@/components/HelloWorld'
import HelloWorld2 from '@/components/HelloWorld2'
...
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
},
{
path: '/example2',
name: 'HelloWorld2',
component: HelloWorld2
}
Copy component in src/components/HelloWorld.vue into new src/components/HelloWorld2.vue
Change names and a content a bit.
Add devDependencies (Currenlty this is not clear for me) into package.json:
"babel-polyfill": "^6.26.0",
"es6-promise": "^4.2.2",
"babel-preset-es2015": "^6.24.1",
.babelrs change as:
...
"stage-2",
"es2015"
...
src/main.js as:
import Vue from 'vue'
import App from './App'
import router from './router'
import es6Promise from 'es6-promise'
es6Promise.polyfill()
...
Version
3.0.1
Reproduction link
http://cant-be-created
Steps to reproduce
Create project with : vue init webpack vuejs-webpack
Add some router components in src/router/index.js as:
...
import HelloWorld from '@/components/HelloWorld'
import HelloWorld2 from '@/components/HelloWorld2'
...
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
},
{
path: '/example2',
name: 'HelloWorld2',
component: HelloWorld2
}
Copy component in src/components/HelloWorld.vue into new src/components/HelloWorld2.vue
Change names and a content a bit.
Add devDependencies (Currenlty this is not clear for me) into package.json:
"babel-polyfill": "^6.26.0",
"es6-promise": "^4.2.2",
"babel-preset-es2015": "^6.24.1",
.babelrs change as:
...
"stage-2",
"es2015"
...
src/main.js as:
import Vue from 'vue'
import App from './App'
import router from './router'
import es6Promise from 'es6-promise'
es6Promise.polyfill()
...
build/webpack.base.conf as:
...
const babelPolyFill = require("babel-polyfill")
...
entry: ["babel-polyfill", "./src/main.js"],
...
npm install && npm run build && npm run dev
Open IE 11 and copy paste to URL bar http://localhost:8080/#/
Append into url: example2 and hit enter
NB!!! Nothing happens. Old page is visible. Should show second page content.
Click IE refresh: site is now visible
NB!!! Click back button: nothing happens. Second page is visible.
Click IE refresh: first page is now visible.
FF for example works fine with same solution.
What is expected?
Url hash (#) part shpould change compponents for hash.
What is actually happening?
Nothing happens on url change IN IE. FF for example works fine.
The text was updated successfully, but these errors were encountered: