import { ref } from 'vue' import { getModels, ModelType } from '@/api' import sdk from '@/sdk' import type { Models } from '@/api' export const models = ref([]) export const initialModels = async () => { // models.value = await getModels() models.value = [ { id: '123', url: '', type: ModelType.SWKJ, title: '某安外', size: 1000, time: '2012-02-05', scale: 1, rotation: { x: 1, y: 1, z: 1}, position: { x: 1, y: 1, z: 1}, opacity: 0.1, bottom: 1, show: true } ] } export { ModelType, ModelTypeDesc } from '@/api' export type { Model, Models } from '@/api'