소스 검색

refactor(systemSetting): 调整项目设置中对话框显示逻辑

- 将 currentItem 赋值操作移至 showDialog 方法开头
- 确保在设置可见性之前完成当前项目的赋值
- 优化代码执行顺序以避免潜在的状态不一致问题
LaveyD 1 주 전
부모
커밋
fa5352822c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/systemSetting/project.vue

+ 1 - 1
src/views/systemSetting/project.vue

@@ -189,8 +189,8 @@ export default {
       window.open(link, '_blank')
     },
     showDialog (type, item) {
-      this[`${type}Visible`] = true
       this.currentItem = item
+      this[`${type}Visible`] = true
     },
     getProjectList (goFirst) {
       this.loading = true