|
@@ -55,20 +55,21 @@ onMounted(async () => {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
- const model = JSON.parse(model_info.value)
|
|
|
- model_num.value = model['model_num']
|
|
|
- console.log(model['model_num'])
|
|
|
- console.log(model['model_keys'])
|
|
|
- const model_array = model['model_keys']
|
|
|
- for (let i = 0; i < model_array.length; i++) {
|
|
|
- model_data.value.push({
|
|
|
- key: model_array[i]['model_key'],
|
|
|
- type: model_array[i]['model_type'],
|
|
|
- subtype: model_array[i]['model_sub_type'],
|
|
|
- format: model_array[i]['model_format'],
|
|
|
- version: model_array[i]['model_version'],
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ const model = JSON.parse(model_info.value)
|
|
|
+ model_num.value = model['model_num']
|
|
|
+ console.log(model['model_num'])
|
|
|
+ console.log(model['model_keys'])
|
|
|
+ const model_array = model['model_keys']
|
|
|
+ for (let i = 0; i < model_array.length; i++) {
|
|
|
+ model_data.value.push({
|
|
|
+ key: model_array[i]['model_key'],
|
|
|
+ type: model_array[i]['model_type'],
|
|
|
+ subtype: model_array[i]['model_sub_type'],
|
|
|
+ format: model_array[i]['model_format'],
|
|
|
+ version: model_array[i]['model_version'],
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
</script>
|