vue 编译后,去掉#号

export default new Router({
  mode:'history',
  base:'/zxbb/front/',
  routes: [
    {
      path: '/message/',
      name: '',
      component:() => import('@/components/center/index')
    },

以上修改完之后,记得在服务器上配置:

location /zxbb/front/message {
     try_files $uri $uri/ /zxbb/front/message/index.html;
}

location /hnzxbb/front/message {
     try_files $uri $uri/ /hnzxbb/front/message/index.html;
}

https://www.cnblogs.com/liugx/p/9336176.html

你可能感兴趣的:(其他)