摘要:
const createRouter = () => new Router({ // mode: 'history', // require service support scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) con 阅读全文
摘要:
- vue-element-admin中,permission主要负责全局路由守卫和登录判断,希望通过以下注释说明,帮助大家理解这个文件的逻辑 import router from './router'import store from './store'import { Message } fro 阅读全文
摘要:
VUE管理系统项目中,在不刷新页面的情况下,更新页面。 // 先注册一个名为 `redirect` 的路由<script>export default { beforeCreate() { const { params, query } = this.$route const { path } = 阅读全文