Browse Source

单点登录login.html

seimin 1 month ago
parent
commit
8810b3d3aa
2 changed files with 10 additions and 0 deletions
  1. 5 0
      angular.json
  2. 5 0
      src/login.html

+ 5 - 0
angular.json

@@ -30,6 +30,11 @@
30 30
                 "glob": "**/*",
31 31
                 "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
32 32
                 "output": "/assets/"
33
+              },
34
+              {
35
+                "glob": "login.html",
36
+                "input": "src",
37
+                "output": "/"
33 38
               }
34 39
             ],
35 40
             "styles": [

+ 5 - 0
src/login.html

@@ -0,0 +1,5 @@
1
+<script>
2
+if(window.location.pathname === '/login.html'){
3
+  window.location.href = '/#/login' + window.location.search;
4
+}
5
+</script>