diff --git a/submodules/store b/submodules/store
index bbf826b..7865b64 160000
--- a/submodules/store
+++ b/submodules/store
@@ -1 +1 @@
-Subproject commit bbf826b765f841fb0f07b2180a6fe7f3de009116
+Subproject commit 7865b648328525adff0a09daaa47b3eaeb77b675
diff --git a/vite.config.ts b/vite.config.ts
index f85dd16..97962a9 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -7,28 +7,13 @@ const centerEnv = process.env.CENTER_ENV;
const plugins: any[] = [];
plugins.push(tailwindcss());
const meBackend = 'https://kevisual.xiongxiao.me';
-const backend = meBackend;
-let proxy = {};
-if (true) {
- proxy = {
- '/api': {
- target: backend,
- changeOrigin: true,
- ws: true,
- cookieDomainRewrite: 'localhost',
- rewrite: (path: any) => path.replace(/^\/api/, '/api'),
- },
- '/user/login': {
- target: backend,
- changeOrigin: true,
- cookieDomainRewrite: 'localhost',
- rewrite: (path: any) => path.replace(/^\/user/, '/user'),
- },
- '/test': {
- target: backend,
- },
- };
-}
+let target = meBackend || 'http://localhost:51515';
+const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
+let proxy = {
+ '/root/': apiProxy,
+ '/api': apiProxy,
+ '/client': apiProxy,
+};
// https://vitejs.dev/config/
export default defineConfig({