# quasar-manage **Repository Path**: incimo/quasar-manage ## Basic Information - **Project Name**: quasar-manage - **Description**: vue-quasar-manage 的 quasar-cli 版本 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://incimo.gitee.io/quasar-manage/ - **GVP Project**: No ## Statistics - **Stars**: 22 - **Forks**: 11 - **Created**: 2021-01-22 - **Last Updated**: 2024-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Quasar-Manage

license cimo vue

Quasar-Manage 是一款中后台前端解决方案: - 基于 [Quasar](http://www.quasarchs.com/) 实现,[Quasar-ui](http://www.quasarchs.com/) 的设计规范来自 [Material Design](https://material.io/) - 包含动态路由,动态缓存,权限验证等常用功能 - 兼容多端运行: SPA / Electron / Cordova - 响应式设计,支持手机 / 平板 / 桌面 /小分辨率屏幕显示 - 包含 tagView 快捷导航、面包屑导航等 SPA 应用常用功能 - 简单的代码逻辑,多种自定义组件,高度可定制性(只有 1600 行代码) - 完全开源及免费 当然如果你想使用基于```VUE-CLI```版本的:[Vue-Quasar-Manage](https://github.com/972784674t/vue-quasar-manage) 使用这个项目前您需要了解如下技术栈: [ES6](https://es6.ruanyifeng.com/) | [Node.js](https://nodejs.org/en/) | [Webpack](https://www.webpackjs.com/) | [Vue](https://cn.vuejs.org/) | [Vuex](https://vuex.vuejs.org/zh/) | [Vue-Router](https://router.vuejs.org/zh/) | [Vuex](https://vuex.vuejs.org/zh/) | [Quasar-cli](http://www.quasarchs.com/start/quasar-cli) | [Axios](http://www.axios-js.com/) | [ESlint](https://eslint.bootcss.com/) | [Electron:如果需要](https://www.electronjs.org/) ### DEMO地址 [Github](https://972784674t.github.io/quasar-manage/) | [Gitee 国内用户访问](https://incimo.gitee.io/quasar-manage) ![pc](https://images.gitee.com/uploads/images/2021/0201/141556_ae23dd14_5663937.png "pc.png") ![electron](https://images.gitee.com/uploads/images/2021/0201/144237_25c67b18_5663937.png "elc.png")

ios

android

### 更新日志 - *2021/1/30* - 修复在微信端``````文本不居中的问题 - 路由```icon```改为非必要,优化没有```icon```时``````和``````的显示问题 - *2021/2/1* - 当路由带```query```参数时,``````和``````会默认加上第一个参数的值作为标识并显示(之前沙雕了用的```params```) - *2021/2/5* - 针对第一个被开启的嵌套路由``````缓存失效,需要进行一次路由切换才能正常缓存的问题: 经过测试是由于用来做嵌套路由的``````组件按需引入导致的,``````组件的按需引入由于是异步操作,会使嵌套路由的第一次拍平操作失效 - 有两种解决方法: 方法 1 : 如果你不想修改源码,在```asyncRoutes.js```中对于``````不使用按需引入即可 ```js import layout from '../components/Layout/layout' { path: '/start', name: 'start', component: layout, children: [{...}] } ``` 方法 2 (兼容按需加载): 修改```permission.js```中的```handleKeepAlive```方法为 ```async/await``` ```js async function handleKeepAlive (to) { if (to.matched && to.matched.length > 2) { for (let i = 0; i < to.matched.length; i++) { const element = to.matched[i] if (element.components.default.name === 'Layout') { to.matched.splice(i, 1) await handleKeepAlive(to) } if (typeof element.components.default === 'function') { await element.components.default() await handleKeepAlive(to) } } } } ``` 经过测试两种方式都可行,不过,总觉得递归和异步套着来一点都不爽 ┗( ▔, ▔ )┛,所以我用第一种...能简单解决的问题,何必复杂化捏... - *2021/3/20* - 如果路由的 roles 没有被设置或为空,则所有用户均可访问 - 添加了后端动态获取路由的 DEMO,并提供了实现思路作为学习交流 - *2021/4/10* - 将 quasar 版本降低为 1.15.1 ,修复 ios 端 input 重复输入的问题 - *2021/9/05* - 修复侧边栏在特定分辨率下会出现滚动条的问题 ### Electron 之后 Electron 版本的更新将在 Electron 分支进行,感谢 [CloudWoR](https://github.com/CloudWoR) 提供的支持 ### 如何运行 请确保您的计算机已经安装了 ```Node.js``` 以及 ```git```,当前项目主要用于展示说明文档 1、克隆项目 ```sh ## 克隆模板项目 git clone https://github.com/972784674t/quasar-manage-template.git ``` 2、下载项目所需依赖 ```yarn yarn install ``` 3、启动开发服务器 ```yarn ## 运行 SPA 版本 quasar dev ## 运行 Electron 版本 quasar dev -m electron ``` ### 如何打包 ```sh quasar build ``` ## License Copyright (c) 2015-present Razvan Stoenescu [MIT License](http://en.wikipedia.org/wiki/MIT_License)