feat:新增岗位管理
This commit is contained in:
8
Yi.Pure.Vue3/src/utils/file.ts
Normal file
8
Yi.Pure.Vue3/src/utils/file.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {isAllEmpty} from "@pureadmin/utils";
|
||||
|
||||
export function getFileUrl(fileId: string, tryPath: string): string {
|
||||
if (isAllEmpty(fileId)) {
|
||||
return tryPath;
|
||||
}
|
||||
return `${import.meta.env.VITE_APP_BASE_API}/file/${fileId}`;
|
||||
}
|
||||
Reference in New Issue
Block a user