1549469775 6 years ago
parent
commit
c00ab1ad99
  1. 2
      nuxt.config.js

2
nuxt.config.js

@ -16,6 +16,8 @@ module.exports = {
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'} {rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
] ]
}, },
// https://www.cnblogs.com/bgwhite/p/9403285.html
// https://zh.nuxtjs.org/api/configuration-router#base
router: { router: {
// 相对路径打包 // 相对路径打包
base: process.env.NODE_ENV==='production'&&process.env.BASE?process.env.BASE:'/' base: process.env.NODE_ENV==='production'&&process.env.BASE?process.env.BASE:'/'

Loading…
Cancel
Save