-

+
{username}
会员:已过期
@@ -89,3 +88,5 @@ export const App = () => {
);
};
+
+export default App;
diff --git a/src/pages/user/edit/Profile.tsx b/src/pages/user/edit/Profile.tsx
index 328f523..87cdbab 100644
--- a/src/pages/user/edit/Profile.tsx
+++ b/src/pages/user/edit/Profile.tsx
@@ -7,7 +7,7 @@ import { useShallow } from 'zustand/react/shallow';
import { isObjectNull } from '@/utils/is-null';
import { useLayoutStore } from '@/modules/layout/store';
import UploadOutlined from '@ant-design/icons/UploadOutlined';
-import PandaPNG from '@/assets/panda.png';
+import { PandaPNG } from '@/assets/index.tsx';
import { FileUpload } from '../module/FileUpload';
import { useTranslation } from 'react-i18next';
import { Edit, UserCog } from 'lucide-react';
diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx
index 6bced85..cd3b6bd 100644
--- a/src/pages/user/index.tsx
+++ b/src/pages/user/index.tsx
@@ -18,3 +18,5 @@ export const App = () => {
);
};
+
+export default App;
\ No newline at end of file
diff --git a/submodules/query-login b/submodules/query-login
index 557cd99..bae8275 160000
--- a/submodules/query-login
+++ b/submodules/query-login
@@ -1 +1 @@
-Subproject commit 557cd99b20ae6c051d5b448e32c6fc6075e4b04e
+Subproject commit bae8275b11d5808fd07c3172441dfc738fef525c
diff --git a/vite.config.ts b/vite.config.ts
index c379f51..26a5d88 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -53,13 +53,14 @@ export default defineConfig({
},
base: isDev ? '/' : '/root/center/',
build: {
+ sourcemap: false,
rollupOptions: {
output: {
// 控制输出
// 在rollup里面, hash代表将你的文件名和文件内容进行组合计算得来的结果
assetFileNames: (chunkInfo) => {
console.log(chunkInfo.names);
- if (chunkInfo.names?.includes('panda.png')) {
+ if (chunkInfo.names?.includes('panda.jpg')) {
return '[name].[ext]';
}
const qrcode = ['qrcode-8x8.jpg'];
@@ -69,6 +70,20 @@ export default defineConfig({
}
return '[name].[hash].[ext]';
},
+ manualChunks(id) {
+ if (id.includes('node_modules')) {
+ if (id.includes('react')) {
+ return 'vendor-react';
+ }
+ // prettier
+ if (id.includes('prettier')) {
+ return 'vendor-prettier';
+ }
+ // codemirror
+ // console.log(id);
+ return 'vendor';
+ }
+ },
},
},
},