提交 18c54dc5 编写于 作者: guangjun.yang's avatar guangjun.yang

解决路由配置问题

上级 ce168d3b
...@@ -8,8 +8,8 @@ Vue.use(Router) ...@@ -8,8 +8,8 @@ Vue.use(Router)
const router = new Router({ const router = new Router({
mode: 'history', mode: 'hash',
base: '/pica-wx-pay/', // base: '/pica-wx-pay/',
routes: [{ routes: [{
path: '/', path: '/',
name: 'index', name: 'index',
......
...@@ -20,28 +20,28 @@ const { NODE_ENV, VUE_APP_ENV } = process.env; ...@@ -20,28 +20,28 @@ const { NODE_ENV, VUE_APP_ENV } = process.env;
module.exports = { module.exports = {
publicPath: '/wxpay/', publicPath: '/wxpay/',
productionSourceMap: VUE_APP_ENV != 'prod' ? true : false, productionSourceMap: VUE_APP_ENV != 'prod' ? true : false,
lintOnSave: undefined, // lintOnSave: undefined,
css: { // css: {
// modules: true, // // modules: true,
loaderOptions: { // loaderOptions: {
less: { // less: {
modifyVars: { // modifyVars: {
green: '#35CBCA' // green: '#35CBCA'
} // }
} // }
} // }
}, // },
// configureWebpack: { // configureWebpack: {
// optimization: { // optimization: {
// minimize: false // minimize: false
// } // }
// }, // },
// transpileDependencies: ['web-buried-point'], // transpileDependencies: ['web-buried-point'],
chainWebpack: config => { // chainWebpack: config => {
config.module // config.module
.rule('images') // .rule('images')
.use('url-loader') // .use('url-loader')
.loader('url-loader') // .loader('url-loader')
.tap(options => Object.assign(options, { limit: 10240 })); // .tap(options => Object.assign(options, { limit: 10240 }));
} // }
}; };
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册