vue-admin-webapp
vue-admin-webapp copied to clipboard
this is a admin project
@gcddblue 自己在做的项目需要mock数据,静态的太多了,mock.js不熟悉,大佬这个项目的数据可以借一下吗?
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");这个方法呢? 萌新不懂为何你这样处理,求告知啊
您好,请问我想修改mock数据该怎么操作
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...
作者的项目结构和代码体现出他清晰的思路和高技术!
能开启下mock数据接口吗,或者发一下mock数据,老哥,线上的项目都登陆不了了。。。
要怎么改
可以给个联系方式吗大佬