.net core使用PageOffice时提示POBrowser is not defined

页面控制台提示:

 说明PageOffice.js未引用,页面增加

<script type="text/javascript" src="~/pageoffice.js"></script>

如果还是访问不到这个js,检查一下Startup.cs,注册2个中间件即可。

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            //其他代码........
            // 启用会话中间件
            app.UseMiddleware<PageOfficeNetCore.POServer.ServerHandlerMiddleware>();
            app.UseMiddleware<PageOfficeNetCore.POServer.AdminSealHandlerMiddleware>();
        }

 

posted @ 2024-06-08 17:24  0Behavior  阅读(20)  评论(0编辑  收藏  举报