You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

​
​
​
​
10 years ago
10 years ago
10 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
10 years ago
123456789101112131415161718192021222324252627282930
  1. var app = angular.module('wechat', ['ngRoute']);
  2. app.constant('config', {
  3. rootPath: '/assets/wechat/',
  4. rootUrl: '/',
  5. apiUrl: '/api/v1/'
  6. });
  7. app.run(['$rootScope', 'auth', '$location', '$routeParams', function($rootScope, auth, $location, $routeParams){
  8. if(g_redirect_path && g_redirect_path.length>1){
  9. console.log(g_redirect_path);
  10. $location.path(g_redirect_path);
  11. g_redirect_path = null;
  12. }
  13. $rootScope.$on('$routeChangeError', function(event, next, current){
  14. if(next && next.templateUrl){
  15. if(!next.templateUrl.endsWith("login.html") && !next.templateUrl.endsWith("reg.html")){
  16. $location.path("/login");
  17. }
  18. }
  19. });
  20. $rootScope.$on('$routeChangeStart', function(event, next, current){
  21. });
  22. }
  23. ]);

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...