// 新建模板
const createtemp = async val => {
scroolFlag.value = true;
const params = {
type: val,
proId: $route.query.proId,
createUser: knowledgeBaseToken.value.userId,
sort: aiInfoConData.value.length
};
const response: any = await writeApi.aiInfo.insertTemp(params);
if (response?.data?.code === '0000') {
await queryTempList();
ElMessage.success('新增成功');
setTimeout(() => {
containerBoxScrool1.value.setScrollTop(containerBoxScrool.value.offsetHeight + 220);
}, 300);
}
};
containerBoxScrool1.value.setScrollTop(containerBoxScrool.value.offsetHeight + 220);