头像上传 token

main
lion 1 year ago
parent 4f104d67e1
commit 49648332e5

@ -120,7 +120,8 @@
headReplace: require('@/static/logo-xietaitai.png'),
showform: false,
maskClose: false,
imgurl: '',
imgurl: '',
myToken:'',
form: {
nickname: '',
mobile: ''
@ -161,7 +162,8 @@
},
onLoad() {
const MenuButton = uni.getMenuButtonBoundingClientRect()
this.navBarTop = MenuButton.top //
this.navBarTop = MenuButton.top //
this.myToken = uni.getStorageSync('xtt_lifeData').vuex_token
},
onShow() {
this.getInitUser()
@ -174,7 +176,7 @@
filePath: e.detail.avatarUrl,
name: 'file',
header: {
'Authorization': `Bearer ${this.vuex_token}`
'Authorization': `Bearer ${this.myToken}`
},
success: (res) => {
uni.showToast({

Loading…
Cancel
Save