Browse Source

添加登录参数

木星 2 months ago
parent
commit
0b1a5c5edf
8 changed files with 8 additions and 7 deletions
  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
 VITE_NODE_ENV=development
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
 VITE_BASE_PATH=/
16
 VITE_BASE_PATH=/

+ 1 - 1
.env.dev

@@ -10,7 +10,7 @@
10
 VITE_NODE_ENV=production
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
 VITE_BASE_PATH=./
16
 VITE_BASE_PATH=./

+ 1 - 1
.env.gitee

@@ -2,7 +2,7 @@
2
 VITE_NODE_ENV=production
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
 VITE_BASE_PATH=/vue-element-plus-admin/
8
 VITE_BASE_PATH=/vue-element-plus-admin/

+ 1 - 1
.env.pro

@@ -10,7 +10,7 @@
10
 VITE_NODE_ENV=production
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
 VITE_BASE_PATH=./
15
 VITE_BASE_PATH=./
16
 
16
 

+ 1 - 1
.env.test

@@ -10,7 +10,7 @@
10
 VITE_NODE_ENV=production
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
 VITE_BASE_PATH=/dist-test/
16
 VITE_BASE_PATH=/dist-test/

+ 1 - 1
index.html

@@ -14,7 +14,7 @@
14
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
14
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
15
     <title><%= title %></title>
15
     <title><%= title %></title>
16
     <script>
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
     </script>
18
     </script>
19
 
19
 
20
   </head>
20
   </head>

+ 1 - 1
src/App.vue

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

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

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