feat: 跳转链接带二维码
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
</div>
|
||||
<div v-else class="add-account-container">
|
||||
<h2 class="cannot-add-account-title flex item-center">
|
||||
<img src="@/assets/warning.svg" alt="">
|
||||
<img src="@/assets/warning.svg" alt="" />
|
||||
当前可用子账号数为0。
|
||||
</h2>
|
||||
<p class="cannot-add-account-subtitle">如需添加更多子账号,您可联系销售人员进行购买和权限扩展。</p>
|
||||
@ -124,15 +124,17 @@ function handlePageSizeChange(pageSize: number) {
|
||||
|
||||
async function getSubAccount() {
|
||||
const res = await fetchSubAccountPage(params);
|
||||
pagination.total = res.total;
|
||||
data.value = res.data;
|
||||
const { data, total } = res.data;
|
||||
pagination.total = total;
|
||||
data.value = data;
|
||||
}
|
||||
async function handleAddAccount() {
|
||||
if (canAddAccount.value) {
|
||||
const res = await getEnterpriseInviteCode();
|
||||
const port = window.location.port === '' ? '' : ':' + window.location.port;
|
||||
const domain = window.location.protocol + '//' + window.location.hostname + port;
|
||||
inviteUrl.value = domain + '?invite_code=' + res.invite_code;
|
||||
|
||||
inviteUrl.value = domain + '?invite_code=' + res.data?.invite_code;
|
||||
}
|
||||
addAccountVisible.value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user