소스 검색

fix search

scorpio 2 년 전
부모
커밋
149337fe96
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/page/login.vue

+ 1 - 1
src/page/login.vue

@@ -388,7 +388,7 @@ export default {
       this.$api.common.getMenus().then(res => {
         if (res.code === 200 && res.data.length > 0) {
           const first = res.data[0]
-          if (first.children.length > 0) {
+          if (first.children && first.children.length > 0) {
             this.$router.replace(first.children[0].path)
             localStorage.setItem(
               'data-type',