Skip to content

Commit

Permalink
fix path with ./
Browse files Browse the repository at this point in the history
  • Loading branch information
perper-per committed Dec 12, 2024
1 parent 09c20d5 commit 961c270
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="./favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#ff0000">

<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" href="./favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="permodoro" />

<!-- Primary Meta Tags -->
Expand All @@ -35,7 +35,7 @@

<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module" src="./src/main.js"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions src/components/three.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ onMounted(() => {
// 直接用 renderer 給的 canvas
root.value.appendChild(renderer.domElement)
textureLoader.load('/GalacticCenter_desktop.png', (texture) => {
textureLoader.load('./GalacticCenter_desktop.png', (texture) => {
scene.background = texture
})
light.position.set(1, 1, 3).normalize()
light3.position.set( 0, 0, 2 );
scene.add(light, light2, light3)
loader.load('/tomato.glb', (gltf) => {
loader.load('./tomato.glb', (gltf) => {
scene.add(gltf.scene)
loadedModel = gltf.scene
loadedModel.scale.set(1.8, 1.8, 1.8)
Expand Down

0 comments on commit 961c270

Please sign in to comment.