diff --git a/build/webpack.config.dev.js b/build/webpack.config.dev.js index b5d3fbdeb..e8b0e0aa2 100644 --- a/build/webpack.config.dev.js +++ b/build/webpack.config.dev.js @@ -27,7 +27,7 @@ module.exports = { host: '0.0.0.0', historyApiFallback: { rewrites: [ - { from: /^\/zanui\/vant\/mobile/, to: '/mobile.html' }, + { from: /^\/zanui\/vant\/examples/, to: '/mobile.html' }, { from: /^\/zanui\/vant/, to: '/index.html' } ] }, diff --git a/docs/src/DocsApp.vue b/docs/src/DocsApp.vue index f1125b6e2..bfd6890b7 100644 --- a/docs/src/DocsApp.vue +++ b/docs/src/DocsApp.vue @@ -12,7 +12,7 @@ import docConfig from './doc.config'; export default { data() { return { - simulators: [`/zanui/vant/mobile${location.hash}`], + simulators: [`/zanui/vant/examples${location.hash}`], demoURL: '' }; },