直入主题
修改mode之后,链接就不需要带#号了
const router = new VueRouter({mode: 'history',routes: [...]
})
nginx配置
location /wx/ {try_files $uri $uri/ /wx/index.html;
}
直入主题
修改mode之后,链接就不需要带#号了
const router = new VueRouter({mode: 'history',routes: [...]
})
nginx配置
location /wx/ {try_files $uri $uri/ /wx/index.html;
}