小程序登录接口
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const install = (Vue, vm) => {
|
||||
Vue.prototype.$u.http.setConfig({
|
||||
//baseUrl: 'https://gmall-prod.atguigu.cn/api',
|
||||
baseUrl: 'http://ggkt2.vipgz1.91tunnel.com/api',
|
||||
baseUrl: 'http://localhost:8200/api',
|
||||
loadingText: '请求中...', // 请求loading中的文字提示
|
||||
loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
|
||||
loadingMask: true, // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
|
||||
|
@@ -59,11 +59,11 @@ export default {
|
||||
data: result.token,
|
||||
success: async () => {
|
||||
// 更新用户信息
|
||||
await this.$u.api.postUpdateUser({
|
||||
sex,
|
||||
photoUrl,
|
||||
nickName
|
||||
});
|
||||
// await this.$u.api.postUpdateUser({
|
||||
// sex,
|
||||
// photoUrl,
|
||||
// nickName
|
||||
// });
|
||||
// 路由跳转至首页
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index',
|
||||
|
Reference in New Issue
Block a user