Code Monkey home page Code Monkey logo

vue-admin-webapp's Issues

本地部署报错

请问为什么在本地部署登录不了系统呢,报错,是接口改了吗

mock 数据没有了老哥

能开启下mock数据接口吗,或者发一下mock数据,老哥,线上的项目都登陆不了了。。。

登录

登录的时候,dispatch的名字‘user/_login’,然而在/store/modules/user.js中d的actions中只找到了‘_login’,想知道为什么这两个名字没有对应起来,前面的‘user/’是怎么回事

src/api/index目录下网络请求返回401时,清空token且返回登录页好像错了吧?

import store from "@/store";
import router from "@/router";
store.commit("DEL_TOKEN");
router.replace({
path: "/login",
query: {
redirect: router.currentRouter.fullPath,
},
});
//上面是你的处理,
store.commit("DEL_TOKEN");
commit提交难道不是应该在actions里面的方法提交的吗?这样也能提交mutations吗?
为何不直接使用你store.dispatch("user/loginOut");这个方法呢?
萌新不懂为何你这样处理,求告知啊

右侧消息中心和切换charts页面元素重叠

1、使用admin账户登录进去,
2、左侧菜单栏选择Echarts/切换charts
3、点击右上角消息按钮向左推出消息中心面板,此时charts页面的切换四个切换天数按钮,挡在了消息中心页面上

路由的一点小错误

// router/index.js
path: '/permission',
...
redirect: '/permission/page-use',

这个redirect字段的值应该是/permission/page-user

关于近期打不开页面问题

这个主要还是因为巨坑的easy-mock官网时常挂掉,所以api响应错误,现在我已经改为部署在fastmock上,语法部署规则和easy-mock很像,已经能正常访问了。(easy-mock真的是无力吐槽,挺好的网站不好好维护,看看github上全是吐槽官网挂了的...)

大佬,登录那报错,下载最新的代码

vue-router.esm.js?8c4f:1958 Uncaught (in promise) Error: Redirected when going from "/login?redirect=%2Fdashbord" to "/dashbord" via a navigation guard.
at createRouterError (vue-router.esm.js?8c4f:1958)
at createNavigationRedirectedError (vue-router.esm.js?8c4f:1917)
at eval (vue-router.esm.js?8c4f:2266)
at _callee$ (index.js?a18c:300)
at tryCatch (runtime.js?96cf:62)
at Generator.invoke [as _invoke] (runtime.js?96cf:296)
at Generator.prototype. [as next] (runtime.js?96cf:114)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
at _next (asyncToGenerator.js?1da1:25)

提一个bug, 切换用户后登陆成功直接路由404页面

重现步骤:

  1. 先登陆 admin管理员账号
  2. 访问路由, 权限许可/权限设置
  3. 用户-登出
  4. 输入 user进行登陆
  5. 登陆成功
  6. 导航404页面

可能造成的原因:

  1. 登陆的是管理员账号, 管理员有权限访问 权限许可/权限设置 路由
  2. 登出的时候, 路由导航到 /login的时候, 路由的查询参数 redirect: router.currentRoute.fullPath保存了当前解析的 URL /permission/roles
  3. user 用户登陆, 登陆成功之后进行导航, 而它并没有访问 /permission/roles 路由的权限, 导致直接登陆 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.