Explorar el Código

:alien: Updating code due to external API changes.

冷冷 hace 6 años
padre
commit
ba37ca46a8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/store/modules/user.js

+ 2 - 2
src/store/modules/user.js

@@ -150,7 +150,7 @@ const user = {
         }) {
             return new Promise(resolve => {
                 GetMenu().then((res) => {
-                    const data = res.data
+                    const data = res.data.data
                     data.forEach(ele => {
                         addPath(ele);
                     })
@@ -206,4 +206,4 @@ const user = {
     }
 
 }
-export default user
+export default user