百色农校

This commit is contained in:
2025-04-17 16:22:32 +08:00
parent fe348ae97b
commit 7078da29f2
35 changed files with 516 additions and 114 deletions

View File

@@ -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}`
}