refactor(ui): 账号改为平台→账号→资产三层交互(平台卡片入口+展开看名下资产,移除平铺账号区)

This commit is contained in:
gouki
2026-08-08 22:16:14 +00:00
parent 1c93ac00eb
commit fcb3153c50
5 changed files with 101 additions and 29 deletions
+4
View File
@@ -25,6 +25,7 @@ const store = reactive({
assetModal: { show: false, editing: null, form: null },
providerModal: { show: false, editing: null, form: null },
accountModal: { show: false, editing: null, form: null },
accountsModal: { show: false, providerSlug: null }, // 账号查看弹窗:providerSlug 为 null 时看全部
});
function applyDark() {
@@ -166,6 +167,9 @@ async function deleteProvider(p) {
}
/* ---------------- 账号操作 ---------------- */
function openAccountsView(providerSlug) {
store.accountsModal = { show: true, providerSlug: providerSlug || null };
}
function openAccountCreate(platform) {
store.accountModal = { show: true, editing: null, form: { name: '', platform: platform || '', remark: '' } };
}