解绑传参方式修改,隐私协议,用户协议,跳转相对应路径
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const BASE_URL = 'http://192.168.2.23:8000';
|
||||
const BASE_URL = 'http://192.168.2.34:8000';
|
||||
const request = (options) => {
|
||||
console.log("options"+JSON.stringify(options))
|
||||
return new Promise((resolve, reject) => {
|
||||
@ -40,5 +40,8 @@ const request = (options) => {
|
||||
uni.request(config);
|
||||
});
|
||||
};
|
||||
|
||||
// 导出基础URL以便其他地方使用
|
||||
export const baseURL = BASE_URL
|
||||
export const getToken = () => uni.getStorageSync('token') // 获取token的方法
|
||||
export const clientid =() => uni.getStorageSync('clientID');
|
||||
export default request;
|
Reference in New Issue
Block a user