zhou1577692533 1 неделя назад
Родитель
Сommit
18931a5d90
1 измененных файлов с 2 добавлено и 1 удалено
  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);