Vue項目自定義項目訪問路徑

1. 在index.html添加 meta base=」/shop/」 (shop自定義的名稱) 2. 在配置路由的index.js添加mode: ‘history’, base: ‘/shop/’ 3.在項目的 config\index.js配置 **html **web 4.以上就已經配置完了,最後項目的請求地址就是: ** http://localhost:8083/shop/svg 注意:
相關文章
相關標籤/搜索