注册用户-同步宜当生活加上隐私协议

This commit is contained in:
zhouyanli
2026-09-11 09:29:32 +08:00
parent 3de44644bd
commit 4f209b8fb7
12 changed files with 637 additions and 32 deletions

View File

@@ -2,10 +2,11 @@ import { navigateToLogin } from '@/common/checkLogin.js'
let baseUrl = '';
if (process.env.NODE_ENV === 'development') {
// baseUrl = 'http://192.168.1.6:8080'; // 开发环境
baseUrl = 'http://192.168.1.222:8080';
baseUrl = 'http://192.168.1.222:8080'; // 开发环境
// baseUrl = "https://during-immovable-eats.ngrok-free.dev";
} else {
baseUrl = 'https://wuyeapi.ckdzkj.com'; // 生产环境
// baseUrl = 'https://during-immovable-eats.ngrok-free.dev';
}
export default function request(url, data = {}, method = "GET") {
@@ -18,7 +19,8 @@ export default function request(url, data = {}, method = "GET") {
const token = uni.getStorageSync("token") || "";
const header = {
"clientid": "resident",
'content-type': 'application/json'
'content-type': 'application/json',
// 'ngrok-skip-browser-warning': '69420'
};
if (token) {
header["Authorization"] = "Bearer " + token;