From 36d036e08626ced71485b8566acba8a824132657 Mon Sep 17 00:00:00 2001 From: h_cg <596417202@qq.com> Date: Fri, 11 Oct 2024 17:27:31 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/platform.ts | 8 ++++---- postcss.config.ts | 4 ++-- src/mock/index.ts | 4 ++-- src/mock/utils.ts | 2 +- src/mock/v1/modules/auth.ts | 8 ++++---- src/pages/login/index.vue | 4 ++-- src/pages/notFound/404.vue | 2 +- src/router/index.ts | 2 +- src/services/api/user.ts | 2 +- src/stores/modules/user.ts | 6 +++--- src/utils/auth.ts | 2 +- src/utils/cache/index.ts | 2 +- src/utils/cache/storageCache.ts | 2 +- src/utils/character.ts | 2 +- src/utils/cipher.ts | 10 +++++----- src/utils/env.ts | 2 +- src/utils/http/faultTolerance.ts | 2 +- src/utils/http/index.ts | 12 ++++++------ 18 files changed, 38 insertions(+), 38 deletions(-) diff --git a/build/platform.ts b/build/platform.ts index c7feb67..0282e9b 100644 --- a/build/platform.ts +++ b/build/platform.ts @@ -7,9 +7,9 @@ const WeappTailwindcssDisabled = isH5 || isApp; const isMp = !isH5 && !isApp; export { - isH5, - isApp, - WeappTailwindcssDisabled, - isMp, currentPlatform, + isApp, + isH5, + isMp, + WeappTailwindcssDisabled, }; diff --git a/postcss.config.ts b/postcss.config.ts index a16dcd9..1f941ac 100644 --- a/postcss.config.ts +++ b/postcss.config.ts @@ -1,6 +1,6 @@ -import tailwindcss from 'tailwindcss'; -import autoprefixer from 'autoprefixer'; import type { AcceptedPlugin } from 'postcss'; +import autoprefixer from 'autoprefixer'; +import tailwindcss from 'tailwindcss'; import cssMacro from 'weapp-tailwindcss/css-macro/postcss'; const plugins: AcceptedPlugin[] = [tailwindcss(), autoprefixer()]; diff --git a/src/mock/index.ts b/src/mock/index.ts index be0ea68..1d3fcd8 100644 --- a/src/mock/index.ts +++ b/src/mock/index.ts @@ -1,6 +1,6 @@ -import { createAlovaMockAdapter } from '@alova/mock'; -import { uniappMockResponse, uniappRequestAdapter } from '@alova/adapter-uniapp'; import { mockGroupV1 } from '@/mock/v1'; +import { uniappMockResponse, uniappRequestAdapter } from '@alova/adapter-uniapp'; +import { createAlovaMockAdapter } from '@alova/mock'; /** * 模拟数据请求适配器 diff --git a/src/mock/utils.ts b/src/mock/utils.ts index 04c2eaa..b182ecd 100644 --- a/src/mock/utils.ts +++ b/src/mock/utils.ts @@ -1,5 +1,5 @@ -import { ResultEnum } from '@/enums/httpEnum'; import type { API } from '@/services/model/baseModel'; +import { ResultEnum } from '@/enums/httpEnum'; interface MockResponseOptions { status: number diff --git a/src/mock/v1/modules/auth.ts b/src/mock/v1/modules/auth.ts index 26e5ca5..15c1012 100644 --- a/src/mock/v1/modules/auth.ts +++ b/src/mock/v1/modules/auth.ts @@ -1,9 +1,9 @@ -import { defineMock } from '@alova/mock'; -import { join, random, sampleSize } from 'lodash-es'; -import multiavatar from '@multiavatar/multiavatar'; -import { createMock } from '@/mock/utils'; import { ResultEnum } from '@/enums/httpEnum'; +import { createMock } from '@/mock/utils'; import { getRandomChsString } from '@/utils/character'; +import { defineMock } from '@alova/mock'; +import multiavatar from '@multiavatar/multiavatar'; +import { join, random, sampleSize } from 'lodash-es'; function createRandomToken(len = 36 * 6) { const token = join(sampleSize('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-', len), ''); diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 72df7ae..3ba323b 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -1,7 +1,7 @@