fix: 限制非文本文件读取,限制大文件读取

This commit is contained in:
zhengkunwang223
2022-12-02 18:17:16 +08:00
committed by zhengkunwang223
parent 2add7312e6
commit 05ef2373ef
5 changed files with 49 additions and 9 deletions

View File

@@ -96,7 +96,7 @@
<el-link :underline="false" @click="openMode(row)">{{ row.mode }}</el-link>
</template>
</el-table-column>
<el-table-column :label="$t('file.user')" prop="user"></el-table-column>
<el-table-column :label="$t('file.user')" prop="user" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('file.group')" prop="group"></el-table-column>
<el-table-column :label="$t('file.size')" prop="size">
<template #default="{ row }">
@@ -425,8 +425,8 @@ const openCodeEditor = (row: File.File) => {
codeReq.expand = true;
GetFileContent(codeReq).then((res) => {
editorPage.content = res.data.content;
editorPage.open = true;
});
editorPage.open = true;
};
const closeCodeEditor = () => {