Nuxt generate publishes to the server to report an error problem

Packing command

npm run generate

pit!

Introducing js into the page to report errors,
routing jumps are not working,
manual calling of the background interface is not working

Need to nuxt.config.jsbe configured in the filerouter

skylineUnder the second-level domain name, you need to write the path name.
If it is the first-level domain name./

 // skyline为域名二级要进行配置
 router: {
    
    
    base: process.env.NODE_ENV === 'production' ? '/skyline/' : '/'
  },

Has hash模式nothing to do with whether it is

Guess you like

Origin blog.csdn.net/AK852369/article/details/111317354