页面效果如下: vue3+three完整代码如下: <template> </template> <script setup> import * as THREE from 'three'; import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer.js" import { RenderPass } from "three/example
import isArray from "lodash/isArray" export function objToFormData(config) { //对象转formdata格式 let formData = new FormData(); let obj = config.data; let arrayKey = config.arrayKey; for (var i in obj) { if (isArray(obj[i])) { obj[i].map(item =>