Browse Source

fix: 优化294

ldong 4 months ago
parent
commit
4c79bfacaa
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/forexCalendar/Index.vue

+ 6 - 1
src/views/forexCalendar/Index.vue

@@ -105,7 +105,12 @@ function getPermissionList(){
     apiGetPermissionList().then(res=>{
     apiGetPermissionList().then(res=>{
         if(res.code===200){
         if(res.code===200){
             hasAuth.value = true
             hasAuth.value = true
-            permissonList.value = res.data
+            permissonList.value = res.data.List
+            if(res.data.checked_permission_id){
+                permissionValue.value=res.data.checked_permission_id
+                permissionName.value=res.data.checked_permission_name
+                getPermissionNewestMonth()
+            }
             /* permissionValue.value = permissonList.value[0]?.children[0]?.chart_permission_id
             /* permissionValue.value = permissonList.value[0]?.children[0]?.chart_permission_id
             changePermission() */
             changePermission() */
         }else{
         }else{