guhongwei 5 năm trước cách đây
mục cha
commit
a4634c9655
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/router/index.js

+ 2 - 0
src/router/index.js

@@ -109,6 +109,8 @@ const routes = [
 ];
 
 const router = new VueRouter({
+  mode: 'history',
+  base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
   routes,
 });