Browse Source

fix mobile

pull/9/head
tjz 7 years ago
parent
commit
2df0dec687
  1. 6
      examples/index.html
  2. 1
      webpack.config.js

6
examples/index.html

@ -1,14 +1,16 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app">
<router-view></router-view>
<router-view></router-view>
</div>
</body>
</html>
</html>

1
webpack.config.js

@ -36,6 +36,7 @@ module.exports = merge(baseWebpackConfig, {
},
devServer: {
port: 3000,
host: '0.0.0.0',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: '/index.html' },

Loading…
Cancel
Save