Ver código fonte

修改服务器地址

zhou1577692533 1 semana atrás
pai
commit
18931a5d90
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/components/App.tsx

+ 2 - 1
src/components/App.tsx

@@ -68,7 +68,8 @@ function App() {
       console.log('开始配置权限...');
       console.log('当前URL:', window.location.href);
       
-      const response = await fetch(`https://openapi.julefood.cn:3001/api/configPermission?url=${encodeURIComponent(window.location.href)}`);
+      const currentUrl = window.location.href.split('#')[0];
+      const response = await fetch(`https://openapi.julefood.cn:8082/api/sys_user/jsapi/config?url=${encodeURIComponent(currentUrl)}`);
       const config = await response.json();
       
       console.log('服务器返回配置:', config);