mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-11-01 03:37:19 +08:00 
			
		
		
		
	fix: 优化英文状态下,备份恢复按钮换行的问题 (#1860)
This commit is contained in:
		
							parent
							
								
									c9ea6f6c8d
								
							
						
					
					
						commit
						c326606401
					
				
					 6 changed files with 17 additions and 9 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue