refactor: PageTable组件重构、使用useFetch封装接口请求

This commit is contained in:
meilin.huang
2023-12-11 01:00:09 +08:00
parent 6709135a0b
commit e444500835
40 changed files with 596 additions and 814 deletions

View File

@@ -110,6 +110,9 @@ const getFileType = (path: string) => {
if (path.endsWith('xml') || path.endsWith('html')) {
return 'html';
}
if (path.endsWith('py')) {
return 'python';
}
return 'text';
};
</script>