- 将 currentItem 赋值操作移至 showDialog 方法开头 - 确保在设置可见性之前完成当前项目的赋值 - 优化代码执行顺序以避免潜在的状态不一致问题
@@ -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