diff --git a/build/webpack.config.js b/build/webpack.config.js index 3bba9bd07..cd942827e 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -170,7 +170,7 @@ if (process.env.NODE_ENV === 'production') { delete module.exports.devtool; module.exports.output = { path: path.join(__dirname, '../docs/dist'), - publicPath: './', + publicPath: '/zanui/vue', filename: '[name].[hash:8].js' }; module.exports.plugins = module.exports.plugins.concat([ diff --git a/docs/src/components/mobile-computed.js b/docs/src/components/mobile-computed.js index aa83cbb61..32187bda8 100644 --- a/docs/src/components/mobile-computed.js +++ b/docs/src/components/mobile-computed.js @@ -8,7 +8,7 @@ export default { computed: { mobileUrl() { if (process.env.NODE_ENV === 'production') { - return '/zanui/vue/examples#' + location.pathname; + return '/zanui/vue/examples#' + location.pathname.slice(10); } else { return '/examples.html#' + location.pathname; }