diff --git a/packages/saber/src/vue-renderer/page-prop-loader.js b/packages/saber/src/vue-renderer/page-prop-loader.js index 3b56f8ed4..09e40be31 100644 --- a/packages/saber/src/vue-renderer/page-prop-loader.js +++ b/packages/saber/src/vue-renderer/page-prop-loader.js @@ -32,7 +32,7 @@ module.exports = function(source, map) { // page.slug is optional if (page.slug) { - Component.options.name = 'page-wrapper-' + page.slug.replace(/[^0-9a-z\\-]/i, '-') + Component.options.name = 'page-wrapper-' + page.slug.replace(/[^0-9a-z\\-]/ig, '-') } if (module.hot) { var Vue = require('vue').default