百色农校
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {CmsArticle} from "~/api/cms/cmsArticle/model";
|
||||
import {FILE_SERVER} from "~/config";
|
||||
const route = useRoute();
|
||||
/**
|
||||
* 判断是否为整数
|
||||
@@ -187,3 +188,12 @@ export const copyText = (text: string) => {
|
||||
// 复制成功后再将构造的标签 移除
|
||||
document.body.removeChild(cInput);
|
||||
};
|
||||
|
||||
|
||||
export const getImage = (text: any) => {
|
||||
// 是否包含字符串
|
||||
if(text.indexOf('/upfile') > -1){
|
||||
return FILE_SERVER + text;
|
||||
}
|
||||
return `${text}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user