fix: 修复方法不存在报错
This commit is contained in:
@@ -57,6 +57,12 @@ export default defineComponent({
|
||||
const { proxy } = getCurrentInstance();
|
||||
provide('questionsData', questionsData);
|
||||
|
||||
function addEmptyArrayProp(obj, propName) {
|
||||
obj[propName] = obj[propName] || { option_group: [] };
|
||||
obj[propName].option_group.push({ groups: [] });
|
||||
return obj[propName];
|
||||
}
|
||||
|
||||
// 获取问卷
|
||||
async function getQuetions(sn) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user