Commit b85de4a3 by haojie

修复首次进入创建页面没有获取动作的问题

parent dfa5964d
...@@ -256,6 +256,8 @@ const route = useRoute(); ...@@ -256,6 +256,8 @@ const route = useRoute();
// 动作列表 // 动作列表
const actionList = ref([]); const actionList = ref([]);
// 是否首次请求actionList
const isFirstRequestAction = ref(true);
// 编辑信息 // 编辑信息
const editInfo = computed(() => store.getters['live/getEditLive']); const editInfo = computed(() => store.getters['live/getEditLive']);
...@@ -640,10 +642,16 @@ onMounted(async () => { ...@@ -640,10 +642,16 @@ onMounted(async () => {
// 获取音色音调列表 // 获取音色音调列表
getList(); getList();
if (isFirstRequestAction.value) {
getAction();
isFirstRequestAction.value = false;
}
}); });
onActivated(() => { onActivated(() => {
getAction(); if (!isFirstRequestAction.value) {
getAction();
}
}); });
</script> </script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment