mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-25 03:29:13 +08:00
fix: 优化英文状态下,备份恢复按钮换行的问题 (#1860)
This commit is contained in:
parent
c9ea6f6c8d
commit
c326606401
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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) => {
|
||||
|
@ -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>
|
||||
|
@ -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')"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user