feat: add global 404 page

This commit is contained in:
xfy
2025-05-19 20:09:20 +08:00
parent 39089feea8
commit 7b6bf536ea
10 changed files with 48 additions and 13 deletions

View File

@ -14,11 +14,11 @@ const CatModel = () => {
const camera = useThree((state) => state.camera);
const gltf = useLoader(
GLTFLoader,
'./models/just_a_hungry_cat/modelDraco.gltf',
'/models/just_a_hungry_cat/modelDraco.gltf',
(loader) => {
toggleLoading(true);
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath('./libs/draco/');
dracoLoader.setDecoderPath('/libs/draco/');
loader.setDRACOLoader(dracoLoader);
},
);