src/views/payable/index.vue
@@ -149,9 +149,17 @@ }); const userInfo = ref({}); onMounted(() => { onMounted(async () => { let res = userStore.getInfo(); userInfo.value = res.user; // 确保字典数据已加载完成,避免第一次进入页面时付款类型显示不出来 try { if (!dictStore.dict || dictStore.dict.length === 0) { await dictStore.initDict(); } } catch (error) { console.error('字典数据加载失败:', error); } getList() }) const handleEdit = (row) => {