Commit 37221294 authored by yoyo837's avatar yoyo837 Committed by ι™ˆεΈ…

prettier

parent bfda5fe2
......@@ -47,7 +47,11 @@ export default function request(url, options) {
credentials: 'include',
};
const newOptions = { ...defaultOptions, ...options };
if (newOptions.method === 'POST' || newOptions.method === 'PUT' || newOptions.method === 'DELETE') {
if (
newOptions.method === 'POST' ||
newOptions.method === 'PUT' ||
newOptions.method === 'DELETE'
) {
if (!(newOptions.body instanceof FormData)) {
newOptions.headers = {
Accept: 'application/json',
......
......@@ -74,15 +74,15 @@ function accMul(arg1, arg2) {
let m = 0;
const s1 = arg1.toString();
const s2 = arg2.toString();
m += s1.split(".").length > 1 ? s1.split(".")[1].length : 0;
m += s2.split(".").length > 1 ? s2.split(".")[1].length : 0;
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / 10 ** m;
m += s1.split('.').length > 1 ? s1.split('.')[1].length : 0;
m += s2.split('.').length > 1 ? s2.split('.')[1].length : 0;
return (Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / 10 ** m;
}
export function digitUppercase(n) {
const fraction = ['θ§’', 'εˆ†'];
const digit = ['ι›Ά', 'ε£Ή', 'θ΄°', '叁', '肆', '伍', '陆', 'ζŸ’', '捌', 'ηŽ–'];
const unit = [['ε…ƒ', 'δΈ‡', 'δΊΏ'],['', 'ζ‹Ύ', 'δ½°', '仟', 'δΈ‡']];
const unit = [['ε…ƒ', 'δΈ‡', 'δΊΏ'], ['', 'ζ‹Ύ', 'δ½°', '仟', 'δΈ‡']];
let num = Math.abs(n);
let s = '';
fraction.forEach((item, index) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment