@@ -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,
// 混淆器设置