|
@@ -38,10 +38,7 @@ router.beforeEach((to, from, next) => {
|
|
next();
|
|
next();
|
|
} else {
|
|
} else {
|
|
let params = new URLSearchParams();
|
|
let params = new URLSearchParams();
|
|
- params.append(
|
|
|
|
- "privilegeCodes",
|
|
|
|
- Object.keys(to.meta.privilegeCodes).toString()
|
|
|
|
- );
|
|
|
|
|
|
+ params.append("privilegeCodes", to.meta.privilegeCodes);
|
|
Vue.prototype.$httpWithMsg
|
|
Vue.prototype.$httpWithMsg
|
|
.post(CORE_API + "/rolePrivilege/checkPrivileges?" + params)
|
|
.post(CORE_API + "/rolePrivilege/checkPrivileges?" + params)
|
|
.then(response => {
|
|
.then(response => {
|