Browse Source

优化代码

seimin 2 years ago
parent
commit
dd8a112993
3 changed files with 2 additions and 8 deletions
  1. 1 2
      assets/js/controllers/loginCtrl.js
  2. 1 1
      gulpfile.js
  3. 0 5
      index.html

+ 1 - 2
assets/js/controllers/loginCtrl.js

@@ -7,8 +7,7 @@ app.controller('LoginCtrl', ['$rootScope', '$scope', '$state', '$translate', '$l
7 7
         // 中南财大
8 8
         $rootScope.isZncd = document.domain === 'itsm.zuel.edu.cn';
9 9
         // 华科
10
-        // $rootScope.isHk = document.domain === '192.168.3.110';
11
-        $rootScope.isHk = document.domain === 'localhost';
10
+        $rootScope.isHk = document.domain === '192.168.3.110';
12 11
         //判断项目归属 end
13 12
         // 是否单点登录
14 13
         $scope.isSSo = location.search.length > 0;

+ 1 - 1
gulpfile.js

@@ -4,7 +4,7 @@ const from = {
4 4
   path: [
5 5
     './assets/**/*',
6 6
     // './bower_components/**/*',(第二次以后的更新不用)
7
-    // './index.html',(第二次以后的更新不用)
7
+    './index.html',
8 8
   ]
9 9
 };
10 10
 // 清理dist文件夹

+ 0 - 5
index.html

@@ -43,11 +43,6 @@
43 43
     <link rel="stylesheet" type="text/css" href="assets/css/demo/demo3.css" />
44 44
     <!-- Clip-Two Theme -->
45 45
     <link rel="stylesheet" data-ng-href="assets/css/themes/{{ app.layout.theme }}.css" />
46
-    <script>
47
-        if(document.domain === 'itsm.zuel.edu.cn'){
48
-            window.console.log = function(){};//财大
49
-        }
50
-    </script>
51 46
     <style>
52 47
     .slf{text-align: left!important;}
53 48
     .inspectReportCtrl [ui-grid-cell] .ui-grid-cell-contents {