refactor(ui): 账号改为平台→账号→资产三层交互(平台卡片入口+展开看名下资产,移除平铺账号区)
This commit is contained in:
@@ -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: '' } };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user