Commit b85de4a3 by haojie

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

parent dfa5964d
......@@ -256,6 +256,8 @@ const route = useRoute();
// 动作列表
const actionList = ref([]);
// 是否首次请求actionList
const isFirstRequestAction = ref(true);
// 编辑信息
const editInfo = computed(() => store.getters['live/getEditLive']);
......@@ -640,10 +642,16 @@ onMounted(async () => {
// 获取音色音调列表
getList();
if (isFirstRequestAction.value) {
getAction();
isFirstRequestAction.value = false;
}
});
onActivated(() => {
if (!isFirstRequestAction.value) {
getAction();
}
});
</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