修改了模型文件命名,中文打包后有问题。

This commit is contained in:
root 2025-12-08 09:17:00 +08:00
parent 1b1bada016
commit d25ce01bb9
3 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ import { ref, reactive, computed, onMounted, onUnmounted, watch } from 'vue'
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
const maleUrl = new URL('../assets/glb/男.glb', import.meta.url).href
const femaleUrl = new URL('../assets/glb/女.glb', import.meta.url).href
import maleUrl from '@/assets/glb/male.glb?url'
import femaleUrl from '@/assets/glb/female.glb?url'
// const { ipcRenderer } = require('electron');