ZaiZai 2 months ago
parent
commit
0a524454eb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/project/list/edit-formula.vue

+ 7 - 0
src/views/project/list/edit-formula.vue

@@ -717,6 +717,13 @@ const isSelectEle = async () => {
 //移除挂载的函数
 //移除挂载的函数
 const delEquationSelect = (name) => {
 const delEquationSelect = (name) => {
     equationSelectEle.value?.children?.splice(Number(name), 1)
     equationSelectEle.value?.children?.splice(Number(name), 1)
+    const data = getArrValue(equationSelectEle.value?.children)
+    if (data.length <= 0) {
+        formulaCardType.value = 'project'
+        equationSelectIndex.value = -1
+        equationSelectEle.value = {}
+        equationSelectEleCopy.value = {}
+    }
 }
 }
 
 
 //切换公式tab标签
 //切换公式tab标签