浏览代码

细节调整

乐菲 1 周之前
父节点
当前提交
c6a378e3d5
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      api/request.js
  2. 1 1
      main.js
  3. 2 1
      pages/login/loginPage.vue

+ 1 - 1
api/request.js

@@ -27,7 +27,7 @@ const fetch = (url, opt) => {
 		}
 	}
 	// 带入租户编号
-	if (url === "login") opt.header["tenant-id"] = 1;
+	if (url === "login") opt.header["tenant-id"] = 122;
 	opt.header = {
 		...opt.header,
 		...header

+ 1 - 1
main.js

@@ -34,7 +34,7 @@ import {
 // uni.$baseUrl = "http://192.168.1.97:48080";
 // uni.$baseUrl = "";
 // uni.$baseUrl = "http://218.2.10.30:48080";
-uni.$baseUrl = "http://192.168.1.26:48080"; // dev
+uni.$baseUrl = "http://192.168.1.94:48080"; // dev
 // uni.$baseUrl = "http://113.105.183.190:48064";
 // uni.$baseUrl = "http://113.105.183.190:48080";
 // uni.$baseUrl = "http://113.105.183.190:48163";

+ 2 - 1
pages/login/loginPage.vue

@@ -143,7 +143,8 @@ export default {
         uni.$grace.showLoading('登录中...')
         await uni.$reqPost('login', {
           ...formData,
-          tenantName: '芋道源码',
+          tenantName: '瑞泰克',
+		  tenantId: 1,
           rememberMe: true
         })
           .then(({