添加前端权限

This commit is contained in:
橙子
2022-05-03 17:34:38 +08:00
parent ada36ebff5
commit 5eec076ea2
7 changed files with 49 additions and 11 deletions

View File

@@ -59,6 +59,9 @@ export default {
});
},
init() {
//这里可以遍历后台的菜单code根据对应的菜单code来给axiosUrls的增删改查赋值即可
this.axiosUrls = {
get: "/user/GetList",
update: "/user/Update",

View File

@@ -133,7 +133,7 @@ export default {
};
},
login() {
this.loader = "true";
this.loader = true;
this.btn_dis=true;
this.$store.dispatch("Login", this.form).then((resp) => {
if (resp.status) {