vue-router
强身健体,清神醒脑
这个作者很懒,什么都没留下…
展开
-
vue-router路由表初始化
import Vue from 'vue'import Router from 'vue-router'Vue.use(Router)const createRouter = () => new Router({ mode: 'history', routes: []})const router = createRouter()export function re...原创 2020-01-15 12:58:06 · 2198 阅读 · 0 评论 -
history模式下Nginx后台配置
网上搜了很多相关文章,但是发现页面可以请求下来,图片和css样式表无法加载。于是采取下面方案: location / { root html; index index.html index.htm; try_files $uri $uri/ @rewrites; } location @...原创 2019-06-14 17:31:03 · 1317 阅读 · 0 评论