修复账号ID导致的BUG
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item v-if="hasPerm('email:send')" @click="openSetName(item)">{{ $t('rename') }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-if="item.accountId !== userStore.user.accountId && hasPerm('account:delete')"
|
||||
<el-dropdown-item v-if="item.accountId !== userStore.user.account.accountId && hasPerm('account:delete')"
|
||||
@click="remove(item)">{{ $t('delete') }}
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -238,7 +238,7 @@ function setName() {
|
||||
account.name = name
|
||||
setNameShow.value = false
|
||||
|
||||
if (account.accountId === userStore.user.accountId) {
|
||||
if (account.accountId === userStore.user.account.accountId) {
|
||||
userStore.user.name = name
|
||||
}
|
||||
|
||||
@@ -281,7 +281,7 @@ function setAllReceive(account) {
|
||||
|
||||
|
||||
function showNullSetting(item) {
|
||||
return !hasPerm('email:send') && !(item.accountId !== userStore.user.accountId && hasPerm('account:delete'))
|
||||
return !hasPerm('email:send') && !(item.accountId !== userStore.user.account.accountId && hasPerm('account:delete'))
|
||||
}
|
||||
|
||||
function itemBg(accountId) {
|
||||
|
||||
@@ -486,7 +486,7 @@ function formatImage(content) {
|
||||
function open() {
|
||||
if (!accountStore.currentAccount.email) {
|
||||
form.sendEmail = userStore.user.email;
|
||||
form.accountId = userStore.user.accountId;
|
||||
form.accountId = userStore.user.account.accountId;
|
||||
form.name = userStore.user.name;
|
||||
} else {
|
||||
form.sendEmail = accountStore.currentAccount.email;
|
||||
|
||||
Reference in New Issue
Block a user