From 82084a0480bc21373225d990b7a94c5513e6b5a2 Mon Sep 17 00:00:00 2001 From: 5g0Wp7Zy Date: Tue, 2 Sep 2025 10:20:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9Elogo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- .env.development | 2 +- index.html | 4 +- src/api/index.ts | 3 + src/assets/svgs/ebike.svg | 3 + src/assets/svgs/ebike1.svg | 1 + src/auto-import.d.ts | 149 +++++++++----------- src/components.d.ts | 44 +++--- src/store/modules/route-config.ts | 1 + src/views/login/components/login-banner.vue | 2 +- src/views/login/login.vue | 1 - 11 files changed, 103 insertions(+), 111 deletions(-) create mode 100644 src/assets/svgs/ebike.svg create mode 100644 src/assets/svgs/ebike1.svg diff --git a/.env b/.env index 7ccaaf6..a4a4bb2 100644 --- a/.env +++ b/.env @@ -2,10 +2,10 @@ # development & production & test > .env # title -VITE_GLOB_APP_TITLE = SnowAdmin +VITE_GLOB_APP_TITLE = 卓景出行 # 静态资源url -VITE_IMG_BASE_URL = 'https://my-image-cdn.com' +VITE_IMG_BASE_URL = '' # 本地mock数据 true开启 false关闭 VITE_APP_OPEN_MOCK = true \ No newline at end of file diff --git a/.env.development b/.env.development index ee46171..ea234ae 100644 --- a/.env.development +++ b/.env.development @@ -9,4 +9,4 @@ VITE_ROUTER_MODE = hash VITE_PUBLIC_PATH = './' # 请求路径 管理系统/开发环境 -VITE_APP_BASE_URL = '/your-request-path' \ No newline at end of file +VITE_APP_BASE_URL = '/your-request-path1' \ No newline at end of file diff --git a/index.html b/index.html index d158bd1..728b3a2 100644 --- a/index.html +++ b/index.html @@ -2,10 +2,10 @@ - + - SnowAdmin + 卓景出行
diff --git a/src/api/index.ts b/src/api/index.ts index 5f240af..55fab61 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,6 +1,7 @@ import axios from "axios"; import router from "@/router"; import { Message } from "@arco-design/web-vue"; +import { log } from "@visactor/vchart/esm/util"; // 是否开启本地mock const MOCK_FLAG = import.meta.env.VITE_APP_OPEN_MOCK === "true"; @@ -21,6 +22,8 @@ service.interceptors.request.use( // 有token,在请求头中携带token config.headers.Authorization = userInfo.token; } + console.log(config); + return config; }, function (error: any) { diff --git a/src/assets/svgs/ebike.svg b/src/assets/svgs/ebike.svg new file mode 100644 index 0000000..da21c48 --- /dev/null +++ b/src/assets/svgs/ebike.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/svgs/ebike1.svg b/src/assets/svgs/ebike1.svg new file mode 100644 index 0000000..dfe7dd0 --- /dev/null +++ b/src/assets/svgs/ebike1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/auto-import.d.ts b/src/auto-import.d.ts index 42fe00c..1f3bbc4 100644 --- a/src/auto-import.d.ts +++ b/src/auto-import.d.ts @@ -5,90 +5,75 @@ // Generated by unplugin-auto-import export {} declare global { - const EffectScope: (typeof import("vue"))["EffectScope"]; - const Message: (typeof import("./globals/index"))["Message"]; - const arcoMessage: (typeof import("./globals/index"))["arcoMessage"]; - const computed: (typeof import("vue"))["computed"]; - const createApp: (typeof import("vue"))["createApp"]; - const customRef: (typeof import("vue"))["customRef"]; - const debounce: (typeof import("./globals/index"))["debounce"]; - const defineAsyncComponent: (typeof import("vue"))["defineAsyncComponent"]; - const defineComponent: (typeof import("vue"))["defineComponent"]; - const dictFilter: (typeof import("./globals/index"))["dictFilter"]; - const effectScope: (typeof import("vue"))["effectScope"]; - const getCurrentInstance: (typeof import("vue"))["getCurrentInstance"]; - const getCurrentScope: (typeof import("vue"))["getCurrentScope"]; - const h: (typeof import("vue"))["h"]; - const inject: (typeof import("vue"))["inject"]; - const isProxy: (typeof import("vue"))["isProxy"]; - const isReactive: (typeof import("vue"))["isReactive"]; - const isReadonly: (typeof import("vue"))["isReadonly"]; - const isRef: (typeof import("vue"))["isRef"]; - const markRaw: (typeof import("vue"))["markRaw"]; - const nextTick: (typeof import("vue"))["nextTick"]; - const onActivated: (typeof import("vue"))["onActivated"]; - const onBeforeMount: (typeof import("vue"))["onBeforeMount"]; - const onBeforeRouteLeave: (typeof import("vue-router"))["onBeforeRouteLeave"]; - const onBeforeRouteUpdate: (typeof import("vue-router"))["onBeforeRouteUpdate"]; - const onBeforeUnmount: (typeof import("vue"))["onBeforeUnmount"]; - const onBeforeUpdate: (typeof import("vue"))["onBeforeUpdate"]; - const onDeactivated: (typeof import("vue"))["onDeactivated"]; - const onErrorCaptured: (typeof import("vue"))["onErrorCaptured"]; - const onMounted: (typeof import("vue"))["onMounted"]; - const onRenderTracked: (typeof import("vue"))["onRenderTracked"]; - const onRenderTriggered: (typeof import("vue"))["onRenderTriggered"]; - const onScopeDispose: (typeof import("vue"))["onScopeDispose"]; - const onServerPrefetch: (typeof import("vue"))["onServerPrefetch"]; - const onUnmounted: (typeof import("vue"))["onUnmounted"]; - const onUpdated: (typeof import("vue"))["onUpdated"]; - const onWatcherCleanup: (typeof import("vue"))["onWatcherCleanup"]; - const provide: (typeof import("vue"))["provide"]; - const reactive: (typeof import("vue"))["reactive"]; - const readonly: (typeof import("vue"))["readonly"]; - const ref: (typeof import("vue"))["ref"]; - const resolveComponent: (typeof import("vue"))["resolveComponent"]; - const shallowReactive: (typeof import("vue"))["shallowReactive"]; - const shallowReadonly: (typeof import("vue"))["shallowReadonly"]; - const shallowRef: (typeof import("vue"))["shallowRef"]; - const toRaw: (typeof import("vue"))["toRaw"]; - const toRef: (typeof import("vue"))["toRef"]; - const toRefs: (typeof import("vue"))["toRefs"]; - const toValue: (typeof import("vue"))["toValue"]; - const triggerRef: (typeof import("vue"))["triggerRef"]; - const unref: (typeof import("vue"))["unref"]; - const useAttrs: (typeof import("vue"))["useAttrs"]; - const useCssModule: (typeof import("vue"))["useCssModule"]; - const useCssVars: (typeof import("vue"))["useCssVars"]; - const useId: (typeof import("vue"))["useId"]; - const useLink: (typeof import("vue-router"))["useLink"]; - const useModel: (typeof import("vue"))["useModel"]; - const useRoute: (typeof import("vue-router"))["useRoute"]; - const useRouter: (typeof import("vue-router"))["useRouter"]; - const useSlots: (typeof import("vue"))["useSlots"]; - const useTemplateRef: (typeof import("vue"))["useTemplateRef"]; - const watch: (typeof import("vue"))["watch"]; - const watchEffect: (typeof import("vue"))["watchEffect"]; - const watchPostEffect: (typeof import("vue"))["watchPostEffect"]; - const watchSyncEffect: (typeof import("vue"))["watchSyncEffect"]; + const EffectScope: typeof import('vue')['EffectScope'] + const Message: (typeof import("./globals/index"))["Message"] + const arcoMessage: typeof import('./globals/index')['arcoMessage'] + const computed: typeof import('vue')['computed'] + const createApp: typeof import('vue')['createApp'] + const customRef: typeof import('vue')['customRef'] + const debounce: typeof import('./globals/index')['debounce'] + const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] + const defineComponent: typeof import('vue')['defineComponent'] + const dictFilter: typeof import('./globals/index')['dictFilter'] + const effectScope: typeof import('vue')['effectScope'] + const getCurrentInstance: typeof import('vue')['getCurrentInstance'] + const getCurrentScope: typeof import('vue')['getCurrentScope'] + const h: typeof import('vue')['h'] + const inject: typeof import('vue')['inject'] + const isProxy: typeof import('vue')['isProxy'] + const isReactive: typeof import('vue')['isReactive'] + const isReadonly: typeof import('vue')['isReadonly'] + const isRef: typeof import('vue')['isRef'] + const markRaw: typeof import('vue')['markRaw'] + const nextTick: typeof import('vue')['nextTick'] + const onActivated: typeof import('vue')['onActivated'] + const onBeforeMount: typeof import('vue')['onBeforeMount'] + const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] + const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] + const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] + const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] + const onDeactivated: typeof import('vue')['onDeactivated'] + const onErrorCaptured: typeof import('vue')['onErrorCaptured'] + const onMounted: typeof import('vue')['onMounted'] + const onRenderTracked: typeof import('vue')['onRenderTracked'] + const onRenderTriggered: typeof import('vue')['onRenderTriggered'] + const onScopeDispose: typeof import('vue')['onScopeDispose'] + const onServerPrefetch: typeof import('vue')['onServerPrefetch'] + const onUnmounted: typeof import('vue')['onUnmounted'] + const onUpdated: typeof import('vue')['onUpdated'] + const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] + const provide: typeof import('vue')['provide'] + const reactive: typeof import('vue')['reactive'] + const readonly: typeof import('vue')['readonly'] + const ref: typeof import('vue')['ref'] + const resolveComponent: typeof import('vue')['resolveComponent'] + const shallowReactive: typeof import('vue')['shallowReactive'] + const shallowReadonly: typeof import('vue')['shallowReadonly'] + const shallowRef: typeof import('vue')['shallowRef'] + const toRaw: typeof import('vue')['toRaw'] + const toRef: typeof import('vue')['toRef'] + const toRefs: typeof import('vue')['toRefs'] + const toValue: typeof import('vue')['toValue'] + const triggerRef: typeof import('vue')['triggerRef'] + const unref: typeof import('vue')['unref'] + const useAttrs: typeof import('vue')['useAttrs'] + const useCssModule: typeof import('vue')['useCssModule'] + const useCssVars: typeof import('vue')['useCssVars'] + const useId: typeof import('vue')['useId'] + const useLink: typeof import('vue-router')['useLink'] + const useModel: typeof import('vue')['useModel'] + const useRoute: typeof import('vue-router')['useRoute'] + const useRouter: typeof import('vue-router')['useRouter'] + const useSlots: typeof import('vue')['useSlots'] + const useTemplateRef: typeof import('vue')['useTemplateRef'] + const watch: typeof import('vue')['watch'] + const watchEffect: typeof import('vue')['watchEffect'] + const watchPostEffect: typeof import('vue')['watchPostEffect'] + const watchSyncEffect: typeof import('vue')['watchSyncEffect'] } // for type re-export declare global { // @ts-ignore - export type { - Component, - ComponentPublicInstance, - ComputedRef, - DirectiveBinding, - ExtractDefaultPropTypes, - ExtractPropTypes, - ExtractPublicPropTypes, - InjectionKey, - PropType, - Ref, - MaybeRef, - MaybeRefOrGetter, - VNode, - WritableComputedRef - } from "vue"; - import("vue"); + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + import('vue') } diff --git a/src/components.d.ts b/src/components.d.ts index b7e742c..2a34503 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -5,28 +5,28 @@ // Read more: https://github.com/vuejs/core/pull/3399 export {} -declare module "vue" { +declare module 'vue' { export interface GlobalComponents { - copy: (typeof import("./components/s-layout-search/index copy.vue"))["default"]; - "Index copy": (typeof import("./components/s-layout-search/index copy.vue"))["default"]; - RouterLink: (typeof import("vue-router"))["RouterLink"]; - RouterView: (typeof import("vue-router"))["RouterView"]; - SBarcodeDraw: (typeof import("./components/s-barcode-draw/index.vue"))["default"]; - SCodeView: (typeof import("./components/s-code-view/index.vue"))["default"]; - SExternalLinkPage: (typeof import("./components/s-external-link-page/index.vue"))["default"]; - SFoldPage: (typeof import("./components/s-fold-page/index.vue"))["default"]; - SFullPage: (typeof import("./components/s-full-page/index.vue"))["default"]; - SInternalLinkPage: (typeof import("./components/s-internal-link-page/index.vue"))["default"]; - SLangProvider: (typeof import("./components/s-lang-provider/index.vue"))["default"]; - SLayoutSearch: (typeof import("./components/s-layout-search/index.vue"))["default"]; - SLayoutTools: (typeof import("./components/s-layout-tools/index.vue"))["default"]; - SMainTransition: (typeof import("./components/s-main-transition/index.vue"))["default"]; - SPinyinPro: (typeof import("./components/s-pinyin-pro/index.vue"))["default"]; - SQrcodeDraw: (typeof import("./components/s-qrcode-draw/index.vue"))["default"]; - SRecorderPcm: (typeof import("./components/s-recorder-pcm/index.vue"))["default"]; - SSelectIcon: (typeof import("./components/s-select-icon/index.vue"))["default"]; - SSvgAndIcon: (typeof import("./components/s-svg-and-icon/index.vue"))["default"]; - SSvgIcon: (typeof import("./components/s-svg-icon/index.vue"))["default"]; - SVerifyCode: (typeof import("./components/s-verify-code/index.vue"))["default"]; + copy: typeof import('./components/s-layout-search/index copy.vue')['default'] + 'Index copy': typeof import('./components/s-layout-search/index copy.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + SBarcodeDraw: typeof import('./components/s-barcode-draw/index.vue')['default'] + SCodeView: typeof import('./components/s-code-view/index.vue')['default'] + SExternalLinkPage: typeof import('./components/s-external-link-page/index.vue')['default'] + SFoldPage: typeof import('./components/s-fold-page/index.vue')['default'] + SFullPage: typeof import('./components/s-full-page/index.vue')['default'] + SInternalLinkPage: typeof import('./components/s-internal-link-page/index.vue')['default'] + SLangProvider: typeof import('./components/s-lang-provider/index.vue')['default'] + SLayoutSearch: typeof import('./components/s-layout-search/index.vue')['default'] + SLayoutTools: typeof import('./components/s-layout-tools/index.vue')['default'] + SMainTransition: typeof import('./components/s-main-transition/index.vue')['default'] + SPinyinPro: typeof import('./components/s-pinyin-pro/index.vue')['default'] + SQrcodeDraw: typeof import('./components/s-qrcode-draw/index.vue')['default'] + SRecorderPcm: typeof import('./components/s-recorder-pcm/index.vue')['default'] + SSelectIcon: typeof import('./components/s-select-icon/index.vue')['default'] + SSvgAndIcon: typeof import('./components/s-svg-and-icon/index.vue')['default'] + SSvgIcon: typeof import('./components/s-svg-icon/index.vue')['default'] + SVerifyCode: typeof import('./components/s-verify-code/index.vue')['default'] } } diff --git a/src/store/modules/route-config.ts b/src/store/modules/route-config.ts index ce1cdd0..1da9913 100644 --- a/src/store/modules/route-config.ts +++ b/src/store/modules/route-config.ts @@ -128,6 +128,7 @@ export const routeConfigStore = () => { async function initSetRouter() { // 1、获取过滤角色权限后的树,后端做排序处理 let { data } = await getRoutersAPI(); + // 2、获取路由树转换的一维路由 let flatRoute = linearArray(data); // 3、将模块设置为真实模块 diff --git a/src/views/login/components/login-banner.vue b/src/views/login/components/login-banner.vue index 500e3f4..c53db52 100644 --- a/src/views/login/components/login-banner.vue +++ b/src/views/login/components/login-banner.vue @@ -1,7 +1,7 @@