|
|
@@ -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);
|