Skip to content

Commit 0e8d1e0

Browse files
committed
chore: 清理无用代码
1 parent 831757d commit 0e8d1e0

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

utils/utils.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
import axios from 'axios';
22

3-
export function getImgUrl(url) {
4-
return new URL(`${url}`, import.meta.url).href;
5-
}
6-
7-
export function toOutUrl(url) {
8-
window.open(url);
9-
}
10-
11-
export const title = '安同开源社区 (AOSC)';
12-
13-
export function setTitle(titlePre) {
14-
document.title = titlePre + ' | ' + title;
15-
}
16-
173
export const requestGetJson = (() => {
184
let keys = {};
195
let promise = {};
@@ -86,10 +72,6 @@ export const requestPostJson = (() => {
8672
};
8773
})();
8874

89-
export const setBackgroundColor = (color) => {
90-
return 'bg-[' + color + ']';
91-
};
92-
9375
export const BToMB = (byteSize, fixed = 3) => {
9476
return (byteSize / 1024 / 1024).toFixed(fixed);
9577
};

0 commit comments

Comments
 (0)