fix: 优化英文状态下,备份恢复按钮换行的问题 (#1860)

This commit is contained in:
ssongliu 2023-08-07 11:52:11 +08:00 committed by GitHub
parent c9ea6f6c8d
commit c326606401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 9 deletions

View File

@ -179,6 +179,7 @@ func (r *Local) ChangeAccess(info AccessChangeInfo) error {
if info.Username == "root" {
info.OldPermission = "%"
info.Name = "*"
info.Password = r.Password
}
if info.Permission != info.OldPermission {
if err := r.Delete(DeleteInfo{

View File

@ -180,6 +180,7 @@ func (r *Remote) ChangeAccess(info AccessChangeInfo) error {
if info.Username == "root" {
info.OldPermission = "%"
info.Name = "*"
info.Password = r.Password
}
if info.Permission != info.OldPermission {
if err := r.Delete(DeleteInfo{

View File

@ -106,11 +106,17 @@ const goRouter = async (key: string) => {
};
const onCheck = async () => {
const res = await CheckAppInstalled(key.value);
data.value = res.data;
em('isExist', res.data);
operateReq.installId = res.data.appInstallId;
refresh.value++;
await CheckAppInstalled(key.value)
.then((res) => {
data.value = res.data;
em('isExist', res.data);
operateReq.installId = res.data.appInstallId;
refresh.value++;
})
.catch(() => {
em('isExist', false);
refresh.value++;
});
};
const onOperate = async (operation: string) => {

View File

@ -41,7 +41,7 @@
show-overflow-tooltip
/>
<fu-table-operations :buttons="buttons" :label="$t('commons.table.operate')" fix />
<fu-table-operations width="230px" :buttons="buttons" :label="$t('commons.table.operate')" fix />
</ComplexTable>
</el-drawer>
</div>

View File

@ -60,13 +60,13 @@
{{ computeSize(row.size) }}
</template>
</el-table-column>
<el-table-column :label="$t('commons.table.createdAt')" min-width="80" fix>
<el-table-column show-overflow-tooltip :label="$t('commons.table.createdAt')" min-width="90" fix>
<template #default="{ row }">
{{ row.createdAt }}
</template>
</el-table-column>
<fu-table-operations
width="300px"
width="150px"
:buttons="buttons"
:ellipsis="10"
:label="$t('commons.table.operate')"

View File

@ -38,7 +38,7 @@
>
{{ $t('database.create') }}
</el-button>
<el-button :disabled="!mysqlIsExist && isLocal()" @click="onChangeConn" type="primary" plain>
<el-button v-if="mysqlIsExist || !isLocal()" @click="onChangeConn" type="primary" plain>
{{ $t('database.databaseConnInfo') }}
</el-button>
<el-button