Selaa lähdekoodia

添加登录参数

木星 2 kuukautta sitten
vanhempi
commit
0b1a5c5edf
8 muutettua tiedostoa jossa 8 lisäystä ja 7 poistoa
  1. 1 1
      .env.base
  2. 1 1
      .env.dev
  3. 1 1
      .env.gitee
  4. 1 1
      .env.pro
  5. 1 1
      .env.test
  6. 1 1
      index.html
  7. 1 1
      src/App.vue
  8. 1 0
      src/views/Login/components/LoginForm.vue

+ 1 - 1
.env.base

@@ -10,7 +10,7 @@
10 10
 VITE_NODE_ENV=development
11 11
 
12 12
 # 接口前缀
13
-VITE_API_BASE_PATH='https://test.you07.com/link-server'
13
+VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
14 14
 
15 15
 # 打包路径
16 16
 VITE_BASE_PATH=/

+ 1 - 1
.env.dev

@@ -10,7 +10,7 @@
10 10
 VITE_NODE_ENV=production
11 11
 
12 12
 # 接口前缀
13
-VITE_API_BASE_PATH='https://test.you07.com/link-server'
13
+VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
14 14
 
15 15
 # 打包路径
16 16
 VITE_BASE_PATH=./

+ 1 - 1
.env.gitee

@@ -2,7 +2,7 @@
2 2
 VITE_NODE_ENV=production
3 3
 
4 4
 # 接口前缀
5
-VITE_API_BASE_PATH='https://test.you07.com/link-server'
5
+VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
6 6
 
7 7
 # 打包路径
8 8
 VITE_BASE_PATH=/vue-element-plus-admin/

+ 1 - 1
.env.pro

@@ -10,7 +10,7 @@
10 10
 VITE_NODE_ENV=production
11 11
 
12 12
 # 接口前缀
13
-VITE_API_BASE_PATH='https://test.you07.com/link-server'
13
+VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
14 14
 # 打包路径
15 15
 VITE_BASE_PATH=./
16 16
 

+ 1 - 1
.env.test

@@ -10,7 +10,7 @@
10 10
 VITE_NODE_ENV=production
11 11
 
12 12
 # 接口前缀
13
-VITE_API_BASE_PATH='https://test.you07.com/link-server'
13
+VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
14 14
 
15 15
 # 打包路径
16 16
 VITE_BASE_PATH=/dist-test/

+ 1 - 1
index.html

@@ -14,7 +14,7 @@
14 14
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
15 15
     <title><%= title %></title>
16 16
     <script>
17
-     window.VITE_API_BASE_PATH='https://test.you07.com/link-server'
17
+     window.VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
18 18
     </script>
19 19
 
20 20
   </head>

+ 1 - 1
src/App.vue

@@ -5,7 +5,7 @@ import { ConfigGlobal } from '@/components/ConfigGlobal'
5 5
 import { useDesign } from '@/hooks/web/useDesign'
6 6
 import { useUserStore } from '@/store/modules/user'
7 7
 import router from './router'
8
-import { loginApi, getRsaKey, getTestRoleApi, getAdminRoleApi, getRefreshToken } from '@/api/login'
8
+import { getRefreshToken } from '@/api/login'
9 9
 
10 10
 const { getPrefixCls } = useDesign()
11 11
 

+ 1 - 0
src/views/Login/components/LoginForm.vue

@@ -194,6 +194,7 @@ const signIn = async () => {
194 194
         nweformData.password = encryptedData(res2.data, formData.password)
195 195
         nweformData.username = encryptedData(res2.data, formData.username)
196 196
         nweformData.authCode = encryptedData(res2.data, formData.authCode)
197
+        nweformData.loginType = '1'
197 198
         const res = await loginApi(nweformData)
198 199
 
199 200
         if (res) {