连接后端的category/list接口

Change-Id: I8077f1fe25b0f453b7b07c9bfe4be92f983bff56
diff --git a/vue.config.js b/vue.config.js
index 808123a..ae9a27f 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -14,8 +14,18 @@
         target: process.env.VUE_APP_BACKEND || 'http://localhost:8081',

         changeOrigin: true,

         ws: true,

-        logLevel: 'debug'

-      },

+        secure: false,

+        logLevel: 'debug',

+        onProxyReq: (proxyReq, req, res) => {

+          console.log('🔄 代理请求:', req.method, req.url, '→', 'http://localhost:8081' + req.url)

+        },

+        onProxyRes: (proxyRes, req, res) => {

+          console.log('📨 代理响应:', proxyRes.statusCode, req.url)

+        },

+        onError: (err, req, res) => {

+          console.error('❌ 代理错误:', err.message)

+        }

+      },// 这里需要闭合 /api 的配置

 

       /* ❷ 可选:如果你项目里还有没改完的

             /category、/torrent、/auth 旧写法,保留兼容性。

@@ -37,4 +47,4 @@
       }

     }

   }

-})

+})
\ No newline at end of file