We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831757d commit 0e8d1e0Copy full SHA for 0e8d1e0
utils/utils.js
@@ -1,19 +1,5 @@
1
import axios from 'axios';
2
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
17
export const requestGetJson = (() => {
18
let keys = {};
19
let promise = {};
@@ -86,10 +72,6 @@ export const requestPostJson = (() => {
86
72
};
87
73
})();
88
74
89
-export const setBackgroundColor = (color) => {
90
- return 'bg-[' + color + ']';
91
-};
92
93
75
export const BToMB = (byteSize, fixed = 3) => {
94
76
return (byteSize / 1024 / 1024).toFixed(fixed);
95
77
0 commit comments