mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +08:00
fix build
This commit is contained in:
parent
e6c4f9ebf2
commit
c6014ad62d
@ -170,7 +170,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
delete module.exports.devtool;
|
delete module.exports.devtool;
|
||||||
module.exports.output = {
|
module.exports.output = {
|
||||||
path: path.join(__dirname, '../docs/dist'),
|
path: path.join(__dirname, '../docs/dist'),
|
||||||
publicPath: './',
|
publicPath: '/zanui/vue',
|
||||||
filename: '[name].[hash:8].js'
|
filename: '[name].[hash:8].js'
|
||||||
};
|
};
|
||||||
module.exports.plugins = module.exports.plugins.concat([
|
module.exports.plugins = module.exports.plugins.concat([
|
||||||
|
@ -8,7 +8,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
mobileUrl() {
|
mobileUrl() {
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
return '/zanui/vue/examples#' + location.pathname;
|
return '/zanui/vue/examples#' + location.pathname.slice(10);
|
||||||
} else {
|
} else {
|
||||||
return '/examples.html#' + location.pathname;
|
return '/examples.html#' + location.pathname;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user