From 1208514f3785dd11a9539b2316609d55122b70b2 Mon Sep 17 00:00:00 2001
From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com>
Date: Mon, 24 Apr 2023 22:10:14 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=20(#775)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/host/file-management/index.vue | 32 +++++++++----------
frontend/vite.config.ts | 2 +-
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue
index 5da4d319d..321e54f8c 100644
--- a/frontend/src/views/host/file-management/index.vue
+++ b/frontend/src/views/host/file-management/index.vue
@@ -98,7 +98,7 @@
:data="data"
@search="search"
>
-
+
@@ -107,14 +107,14 @@
-> {{ row.linkPath }}
-
+
{{ row.mode }}
-
+
@@ -130,15 +130,15 @@
-
@@ -305,7 +305,7 @@ const copyDir = (row: File.File) => {
input.select();
document.execCommand('copy');
document.body.removeChild(input);
- MsgSuccess('ε€εΆζε');
+ MsgSuccess(i18n.global.t('commons.msg.copySuccess'));
}
};
@@ -562,8 +562,11 @@ const buttons = [
click: open,
},
{
- label: i18n.global.t('file.copyDir'),
- click: copyDir,
+ label: i18n.global.t('file.deCompress'),
+ click: openDeCompress,
+ disabled: (row: File.File) => {
+ return row.isDir;
+ },
},
{
label: i18n.global.t('file.mode'),
@@ -575,17 +578,14 @@ const buttons = [
openCompress([row]);
},
},
- {
- label: i18n.global.t('file.deCompress'),
- click: openDeCompress,
- disabled: (row: File.File) => {
- return row.isDir;
- },
- },
{
label: i18n.global.t('file.rename'),
click: openRename,
},
+ {
+ label: i18n.global.t('file.copyDir'),
+ click: copyDir,
+ },
{
label: i18n.global.t('commons.button.delete'),
click: delFile,
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index a79fbf37c..edbce6450 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -39,7 +39,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
host: '0.0.0.0',
proxy: {
'/api/v1': {
- target: 'http://192.168.1.15:9999/',
+ target: 'http://localhost:9999/',
changeOrigin: true,
ws: true,
},