angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

angularjs ui-router publish windows server2012 R2 setUrl is not defiend #3756

Closed ArmyMedalMei closed 5 years ago

ArmyMedalMei commented 5 years ago

This is a (check one box):

My version of UI-Router is: (type version)

Current Behavior:

Angular JS ui-router is published on Windows Server 2012 R2 Server IIS and occasionally appears "Reference Error: setUrl is not defined", but publishing to local IIS will not cause problems, IIS are the same configuration, while I will route the configuration: $stateProvider.state('account', { url: '/account', template: '<div class="dark bg-auto w-full"><div ui-view class="fade-in-right-big smooth pos-rlt"></div></div>' }).state("account.login", { url: '/login', templateUrl: "views/pages/account/signin.html", //登录页面 params: { returnUrl: null }, data: {}, resolve: load(['views/pages/account/signin.js']) }) If I change template Url to template: "

", I will not report an error.

Expected Behavior:

No mistake

ArmyMedalMei commented 5 years ago

The server intercepts and automatically fills a flash. JS file when the UI-VIEW does not load data. The error of replacing the website with HTTPS disappears