Explorar el Código

fix privileges

Michael Wang hace 6 años
padre
commit
adb77d5f3b
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      src/router.js

+ 1 - 4
src/router.js

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