-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor Serer打包部署后会出现定位的那个js 404,并且主页面显示的时间不对 #12
Comments
可以提供更详细的信息吗,我这边尝试了一下,似乎没有问题 |
打包发布之后用浏览器打开部署的域名,主页面报空引用异常,控制台显示/wwwroot/_content/Darnton.Blazor.DeviceInterop/js/geolocation.js资源404 |
打包后的路径里wwwroot_content\Darnton.Blazor.DeviceInterop\js,把Geolocation.js换成小写试试。 |
我试过改小写了,还是不行 |
模仿maui那个项目,复制粘贴一个GeolocationService.cs,把它作为依赖注入。 |
我发现还有个问题,server打包之后拿不到那个location.json,得把Rcl里面的location.json复制到server的root下,不然addlocation页面就报错了 |
确实有这个问题,之前没有打包过Server,在Debug中是没问题的,我想想办法 |
这么写就可以,或者判断第一个路径是否存在,如果不存在就用第二个。 |
想请教以下,就以这个weather项目,server模式下在天气页面不断刷新,内存一直都在涨怎么解决 |
server模式每一次刷新都是建立一个新的连接,这个连接是需要服务端维护的,所以内存涨是正常的。 |
Server模式我用的不多,可能理解不到位。 |
No description provided.
The text was updated successfully, but these errors were encountered: