woai3c / vue-admin-template Goto Github PK
View Code? Open in Web Editor NEWVue 轻量级后台管理系统基础模板
License: MIT License
Vue 轻量级后台管理系统基础模板
License: MIT License
想找个前端配合个完整的系统, 不知道大佬有没有时间
这里有实现类似 超级管理员和普通用户的权限控制吗,看了文章然后来看代码,发现并没有这个功能实现诶
刷新记住上一次点击的菜单位置,如果是二级或三级菜单不会展开。这个我不怎么清楚,望作者解答
侧边栏不会根据屏幕大小自动收缩,这个已解决
还有就是觉得iview这个不怎么友好(是真的难用,还是element好用)
如题
这个可以写的更详细些么?现在一关闭就报错。
比如
import request from '@/utils/request'
export function fetchUserData() {
return request.get('https://api.github.com/users/woai3c')
}
// test ajax to baidu
export function testAjaxToBaidu() {
return request.get('http://www.baidu.com')
}
这个test发的请求失败
这个是前段的地址:http://localhost:8080
这个是我后台的地址http://localhost:8082/task/test
import request from '@/utils/request'
export function testAjaxToBaidu() {
return request.get('http://localhost:8082/task/test')
}
export function fetchUserData() {
return request.get('https://api.github.com/users/woai3c')
}
这样也发送失败啊。
首次登录后访问Index.vue,会设置axios的响应拦截器
注销后,重定向到登录页面,但axios的响应拦截器还有效,后台响应登录返回的结果与首次登录就不一样了
可以考虑注销时也清空掉axios的响应拦截器
比如/Table/List 或者 /Table/Add 这种等等
假设我要在请求头中放:Authorization: Bearer
那么在api那个目录下的发请求的API应该怎么调整呢?
感觉你这个风格挺好的,因为你不是写在脚本里的,就想请教下你怎么做的这两个规范O(∩_∩)O,这两个规范都是用的VS插件还是没写进脚本?update.md是自定义的吗?
前台的配置文件没有找到 先做一个代理 与后台不同端口交互
menuItems: [
{
name: 'home', // 要跳转的路由名称 不是路径
size: 18, // icon大小
type: 'md-home', // icon类型
text: '主页', // 文本内容
},
类似这个md-home是存在哪里,怎么自定义?
比如我有一个路由是:
http://localhost:10000/#/flow/flowAnalysis
现在我想嵌入该项目其他.vue文件,http://localhost:10000/#/flow/flowRestriction/ipblock。
这个文件也是在我的项目里面,是另外一个页面。
我试了用iframe嵌入,但是它会将左边栏也嵌入,也就是整个系统嵌入,有没有另外更好的解决方案?
你好,非常感谢你的模板,现在我们那个左侧菜单,要对接真实的接口,请问应该怎么做比较好
请问页面跳转到详情页,路由要怎么配置呢?
非常感谢分享这么好的项目,想请问下后续是否有迭代计划。
config配置了
publicPath: './',
'/api': {
target: 'http://127.0.0.1:8083/',
*****
}
axios配置访问
this.$axios.post('/api/testData', {}).
开发环境没错,正式环境前端tomcat8081报错,java后台还是8083端口接口
http://127.0.0.1:8081/api/testData
Failed to load resource: the server responded with a status of 404 (Not Found)。
访问地址没有代理成http://127.0.0.1:8083/testData
这些参数都加了,想知道这个怎么解决?
报错信息如下:"Uncaught (in promise) Error: Redirected from "/login" to "/home" via a navigation guard"
如果主页有从后端请求的数据也会无法进行获取。
希望能同步到gitee上
项目还在维护吗?想引到项目中使用
以前没写过前端,最近关注了这个项目,发现很简单也很实用。
开始没有修改成cil3的时候,点打开过的标签,进行切换时,之前查询的内容都还在,但是fork到最新的后,也就是cil3后,切换标签后,页面的内容都是最初的空白。我想问问能不能像以前一样,标签切回去后,以前查询的内容依然还在。。。
我大致看了下,发现之前用的都是components下的index.vue,是不是因为都是用的index.vue所以查询过的内容得意保存?
text: '单独的路由', // 点击侧边栏跳到一个单独的路由页面,需要提前在 router.js 定义
这个注释说明,我在项目里看了一遍,和其它菜单代码设置都是一样。
不知道这个效果,是要单独设置什么参数?
ajax传递过来的数据太多,想滚动,没有滚动条
什么时候添加菜单权限呢
刚进入时的登陆页面是怎么来的,为什么index.vue没有配置路由?请教一下,谢谢
//流量管理
flow: {
path: '/flow',
redirect: 'flow/flowGather',
meta: {title: 'flow'},
children: [
//流量管理 - 流量采集
{
path: 'flowGather',
name: 'flowGather',
meta: {title: 'flowGather'},
component: () => import('../views/ddos/flow/flowGather.vue'),
},
//流量管理 - 流量分析
{
path: 'flowAnalysis',
name: 'flowAnalysis',
meta: {title: 'flowAnalysis'},
component: () => import('../views/ddos/flow/flowAnalysis.vue'),
},
//流量管理 - 流量限制 -- ipblock
{
path: 'flowRestriction/ipblock',
name: 'ipblock',
meta: {title: 'ip封锁'},
component: () => import('../views/ddos/flow/flowrestriction/ipblock/ipblock.vue'),
},
]
},
tree命令输出如下:
.
├── flow
│ ├── flow.vue
│ ├── flowAnalysis.vue
│ ├── flowGather.vue
│ └── flowrestriction
│ └── ipblock
│ └── ipblock.vue
├── sniffeSettings
│ ├── config
│ │ └── tcpdump_config.vue
│ └── taskManager
│ └── tsm
│ └── tsm.vue
└── srm
└── srm.vue
楼主可否建个QQ群?有些问题想咨询
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.