添加
@@ -359,7 +398,7 @@ import { h } from 'vue'
import {
NButton, NCard, NSpace, NTag, NGrid, NGi, NSpin, NForm, NFormItem,
NInput, NInputNumber, NBreadcrumb, NBreadcrumbItem,
- NTabs, NTabPane, NCollapse, NCollapseItem, NDynamicInput, NEmpty,
+ NTabs, NTabPane, NCollapse, NCollapseItem, NDynamicInput, NEmpty, NSwitch,
} from 'naive-ui'
import { useMessage } from 'naive-ui'
@@ -462,7 +501,7 @@ function normalizeVersion(v) {
return {
id: v.id || '', name: v.name || '', tag: v.tag || '',
days: v.days || 0, nights: v.nights || 0, line: v.line || '', route: v.route || '',
- audience: v.audience || '', description: v.description || '',
+ audience: v.audience || '', description: v.description || '', isMainProduct: v.isMainProduct || false,
highlights: Array.isArray(v.highlights) ? v.highlights : [],
itinerary: normalizeItinerary(v.itinerary || []),
pricing: {