bill 4 months ago
parent
commit
970e98207b

+ 1 - 1
src/views/animation/right/action.vue

@@ -61,7 +61,7 @@ const props = defineProps<{ data: AnimationModelAction; am: AnimationModel }>();
 defineEmits<{ (e: "updateDuration", dur: number): void }>();
 
 const dur = computed(() => {
-  const actions = amMap[props.am.id].am?.getSupportActions() || [];
+  const actions = amMap[props.am.id]?.am?.getSupportActions() || [];
   const action = actions.find((item) => item.name === props.data.key);
   if (action?.duration) {
     return action?.duration / props.data.speed;

+ 2 - 2
src/views/animation/right/am.vue

@@ -172,7 +172,7 @@ const actionsMap: Record<string, string> = {
 };
 const keys = Object.keys(actionsMap);
 const amActions = computed(() => {
-  const actions = amMap[props.am.id].am?.getSupportActions() || [];
+  const actions = amMap[props.am.id]?.am?.getSupportActions() || [];
   return actions.map(({ name: action, duration }) => {
     let key = action.toLowerCase().replaceAll(/( |-)/gi, "_");
     !keys.find((k) => key.includes(k)) && console.log(key);
@@ -199,7 +199,7 @@ const selectPathHandler = () => {
 };
 
 const getActionDur = (key: string) => {
-  const actions = amMap[props.am.id].am?.getSupportActions() || [];
+  const actions = amMap[props.am.id]?.am?.getSupportActions() || [];
   const action = actions.find((item) => item.name === key);
   if (action?.duration) {
     return round(action?.duration);

+ 1 - 1
src/views/merge/index.vue

@@ -75,7 +75,7 @@ import { useRMenus } from "@/components/right-menu";
 const active = useActive();
 const actionItems: ActionsProps["items"] = [
   {
-    icon: "move",
+    icon: "a-move",
     text: "移动",
     action: () => {
       getSceneModel(custom.currentModel)?.enterMoveMode();

+ 1 - 1
src/views/tagging/hot/index.vue

@@ -147,6 +147,6 @@ defineExpose({
 }
 
 .edit-layout {
-  z-index: 999999;
+  z-index: 999;
 }
 </style>

+ 1 - 1
src/views/tagging/index.vue

@@ -20,7 +20,7 @@
   <Teleport to=".laser-layer">
     <div class="quisks" v-if="!isEdit && !currentIsFullView">
       <div class="quisk-item fun-ctrl" @click="quiskAdd('tagging')">
-        <ui-icon type="a-guide_s" />
+        <ui-icon type="label" />
         <span>标签</span>
       </div>
       <!-- <div class="quisk-item fun-ctrl" @click="quiskAdd('monitor')">