From c00ab1ad99b86e71b1585548ad8fe20a852ec9c0 Mon Sep 17 00:00:00 2001 From: 1549469775 <1549469775@qq.com> Date: Tue, 12 Nov 2019 21:55:36 +0800 Subject: [PATCH] da --- nuxt.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index 727b0bf..03fc91a 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -16,6 +16,8 @@ module.exports = { {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: { // 相对路径打包 base: process.env.NODE_ENV==='production'&&process.env.BASE?process.env.BASE:'/'