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,
},