重新检测
This commit is contained in:
@@ -214,7 +214,6 @@ const onPaneReady = () => {
|
||||
|
||||
// 提取公共的label渲染函数
|
||||
const createLabel = (device:any, Key: number) => {
|
||||
console.log('-=-=',device)
|
||||
return h(
|
||||
'div',
|
||||
{
|
||||
|
||||
@@ -563,6 +563,7 @@ watch(ts, function (newValue, oldValue) {
|
||||
|
||||
// 定义一个初始化参数的方法
|
||||
function initializeParameters() {
|
||||
collapseActiveName.value = '1'
|
||||
activeIndex.value = 0
|
||||
step1.value = 'wait'
|
||||
step2.value = 'wait'
|
||||
|
||||
@@ -323,7 +323,8 @@ const handleSubmitAgain = async () => {
|
||||
}
|
||||
stepsTotalNum.value = count + 1
|
||||
|
||||
// 通知子组件清空并重新初始化
|
||||
// 等待组件渲染完成
|
||||
await nextTick()
|
||||
if (preTestRef.value) {
|
||||
preTestRef.value.initializeParameters()
|
||||
}
|
||||
@@ -342,7 +343,6 @@ const handleSubmitAgain = async () => {
|
||||
standardDevIds: standardDevIds.value,
|
||||
pairs: pairs.value,
|
||||
testItemList: [checkStore.selectTestItems.preTest, false, checkStore.selectTestItems.test],
|
||||
|
||||
userId: userStore.userInfo.id
|
||||
})
|
||||
|
||||
@@ -479,7 +479,7 @@ watch(ActiveStatue, function (newValue, oldValue) {
|
||||
nextStep() // 实现自动点击,进入下一个测试内容
|
||||
//handleSubmitFast()
|
||||
}
|
||||
console.log('stepsActiveIndex.value', stepsActiveIndex.value)
|
||||
|
||||
})
|
||||
|
||||
const handleQuit = () => {
|
||||
|
||||
Reference in New Issue
Block a user