diff --git a/src/components/common/upload/index.scss b/src/components/common/upload/index.scss index 20d12d50..84e88afb 100644 --- a/src/components/common/upload/index.scss +++ b/src/components/common/upload/index.scss @@ -1,6 +1,5 @@ .upload-content { height: 57.4rem; - gap: 4.5rem; .left-content { width: 22.5rem; .el-tree { diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index 1dcb345a..a4894aef 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -13,7 +13,7 @@
-
+
@@ -297,7 +297,7 @@ watch( get_tree(); // 获取附件列表 get_attachment_list(); - + icon_index.value = -1; } } diff --git a/src/layout/components/main/default/footer-nav.ts b/src/layout/components/main/default/footer-nav.ts index 9c5a9e13..19c71b95 100644 --- a/src/layout/components/main/default/footer-nav.ts +++ b/src/layout/components/main/default/footer-nav.ts @@ -1,8 +1,7 @@ import defaultCommon from './index'; import { online_url } from '@/utils'; -const new_url = online_url(); - +const new_url = await online_url(); interface DefaultFooterNav { content: { nav_style: string; diff --git a/src/utils/index.ts b/src/utils/index.ts index cfe94a5c..2d5c7ee9 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -329,6 +329,6 @@ export const online_url = async () => { let temp_data = await import(import.meta.env.VITE_APP_BASE_API == '/dev-api' ? '../../temp.d' : '../../temp_pro.d'); return temp_data.default.temp_attachment_host + '/static/app/tabbar/'; } else { - return (await get_cookie('temp_attachment_host')) + '/static/app/tabbar/'; + return get_cookie('attachment_host') + '/static/app/tabbar/'; } }; diff --git a/vite.config.ts b/vite.config.ts index 1c3dc6fe..6d61d4b2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -79,6 +79,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { // 构建配置 build: { + target: 'esnext', // 打包不压缩图片为base64 assetsInlineLimit: 0, // 混淆器设置