feat:初始化工程
This commit is contained in:
17
src/utils/index.ts
Normal file
17
src/utils/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 文件服务器地址
|
||||
*/
|
||||
export const fileServiceUrl = '/home-service/file'
|
||||
|
||||
/**
|
||||
* 服务器文件路径根地址
|
||||
*/
|
||||
export const serviceFileRootPath = '/home-service/'
|
||||
|
||||
/**
|
||||
* 获取assets静态资源
|
||||
* @param url 路径
|
||||
*/
|
||||
export const getAssetsImageFile = (url: string) => {
|
||||
return new URL(`/src/assets/${url}`, import.meta.url).href
|
||||
}
|
||||
Reference in New Issue
Block a user