فهرست منبع

add some reposity

night-cherry 3 هفته پیش
والد
کامیت
bff1075fc9
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 1 0
      pages/sample.html
  2. 4 2
      utils/sample.js

+ 1 - 0
pages/sample.html

@@ -16,6 +16,7 @@
     <h3>sample</h3>
     <h1>Hello, World!</h1>
     <p>this is a sample about boujeeshilry.com!</p>
+    <div id="app"></div>
     <canvas id="canvas"></canvas>
     <hr/>
 </body>

+ 4 - 2
utils/sample.js

@@ -5,7 +5,8 @@ import path from "path";
 import { OrbitControls } from "three-orbitcontrols-ts";
 
 //import router from "./router.vue";
-import router from "./router.js";
+import i18n from "../i18n";
+import router from ".。/router.js";
 import ElementPlus from 'element-plus';
 import 'element-plus/dist/index.css';
 import 'animate.css';
@@ -13,7 +14,7 @@ import 'animate.css';
 //console.log(i18n);
 console.log(router);
 const app=createApp({
-  template:'#my-app',
+  template:'#app',
 //  template:`<div v-html='info'>template</div>`,
   components:{
     Home,
@@ -29,6 +30,7 @@ const app=createApp({
     
   },
   setup(){
+    console.log("Threejs modele");
         
     // const scene=new Three.Scene();
     // const camera=new Three.PerspectiveCamera();