jwyu 2 éve
szülő
commit
f89f04a30b
3 módosított fájl, 8 hozzáadás és 3 törlés
  1. 6 1
      src/App.vue
  2. 1 1
      src/views/report/Detail.vue
  3. 1 1
      src/views/report/Index.vue

+ 6 - 1
src/App.vue

@@ -1,10 +1,15 @@
 <script setup>
+import {ref} from 'vue'
+
+const wwidth=ref(window.innerWidth)
+
+
 </script>
 
 <template>
   <div class="main-wrap">
     <router-view />
-    <el-backtop :right="100" :bottom="100" />
+    <el-backtop :right="wwidth<700?20:100" :bottom="100" />
   </div>
   
 </template>

+ 1 - 1
src/views/report/Detail.vue

@@ -21,7 +21,7 @@ function goIndex(item){
     router.replace({
         path:'/report/index',
         query:{
-            firstclassifyid:item.Id
+            firstclassifyid:item.id
         }
     })
 }

+ 1 - 1
src/views/report/Index.vue

@@ -23,7 +23,7 @@ async function getReportClassify(){
 
         if(route.query.firstclassifyid){
             arr.forEach(item => {
-                if(item.Id==route.query.firstclassifyid){
+                if(item.id==route.query.firstclassifyid){
                     handleChangeFirstClassify(item)
                 }
             });