bill hace 2 años
padre
commit
d61767e2d3
Se han modificado 2 ficheros con 2 adiciones y 3 borrados
  1. 1 1
      src/layout/show/slide-menu.vue
  2. 1 2
      src/views/record/shot-imitate.vue

+ 1 - 1
src/layout/show/slide-menu.vue

@@ -4,7 +4,7 @@
       v-for="item in items" 
       :class="{active: item.name === activeName}" 
       :key="item.name"
-      @click="$emit('changeItem', item)"
+      @click="$emit('changeItem', item as any)"
     >
       <ui-icon :type="item.icon" :tip="item.title" class="icon" />
     </div>

+ 1 - 2
src/views/record/shot-imitate.vue

@@ -1,6 +1,6 @@
 <template>
   <slideMenu :activeName="activeName" @change-item="item => activeName = item.name" />
-
+    <!-- 123123123 -->
   <component :is="component"></component>
 </template>
 
@@ -14,5 +14,4 @@ const component = computed(() => {
   const route = getRouteConfig(activeName.value)
   return route?.component
 })
-
 </script>