ソースを参照

工业元宇宙 bug修复

任一存 2 年 前
コミット
1d517b6b32
3 ファイル変更7 行追加5 行削除
  1. 1 1
      package.json
  2. 2 3
      src/App.vue
  3. 4 1
      src/views/Metaverse.vue

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "my-app",
-  "version": "0.0.0",
+  "version": "0.0.2",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve --mode dev",

+ 2 - 3
src/App.vue

@@ -375,10 +375,9 @@ html, body {
     position: fixed;
     left: 0;
     width: 100%;
-    height: rgba(210, 189, 132, 0.7);
     height: v-bind('navBarHeight');
     border-radius: 5px 5px 0 0;
-    border-top: solid 1px #D2BD84;
+    border-top: rgba(210, 189, 132, 0.7);
     box-shadow: inset 0px 2px 2px 0px rgba(210,189,132,0.45), 0px -9px 24px 0px rgba(183,162,109,0.25);
     display: flex;
     justify-content: center;
@@ -427,7 +426,7 @@ html, body {
   >button.show-hide {
     position: fixed;
     right: 82px;
-    bottom: 34px;
+    bottom: 28px;
     width: 36px;
     height: 36px;
     background-size: cover;

+ 4 - 1
src/views/Metaverse.vue

@@ -42,6 +42,9 @@ import {
 
 export default {
   name: 'MetaverseView',
+  beforeRouteLeave() {
+    gUnityInst.SendMessage('MainPanel', 'ResetCamera')
+  },
   setup () {
     const rawData = reactive({ value: null })
     onMounted(async () => {
@@ -62,7 +65,7 @@ export default {
     }
     window.handleClickPlanet = function(id) {
       console.log('click planet', id)
-      onClickStar(id)
+      onClickStar(id - 1)
     }
     window.handleMovedPlanet = function(id) {
       console.log('moved planet', id)