|
@@ -57,7 +57,7 @@
|
|
<script>
|
|
<script>
|
|
import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
|
|
import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
|
|
- import {saveEmployee } from '@/api/employee'
|
|
|
|
|
|
+ import {saveHeadImage } from '@/api/employee'
|
|
const baseUrl = getApp().globalData.baseUrl
|
|
const baseUrl = getApp().globalData.baseUrl
|
|
import {
|
|
import {
|
|
mapState,
|
|
mapState,
|
|
@@ -99,7 +99,8 @@
|
|
console.log(ret,'uploadFileRes')
|
|
console.log(ret,'uploadFileRes')
|
|
if(ret.status == 200){
|
|
if(ret.status == 200){
|
|
_this.avatarUrl = ret.data
|
|
_this.avatarUrl = ret.data
|
|
- saveEmployee({id:_this.userInfo.userid,photo: ret.data}).then(res => {
|
|
|
|
|
|
+ _this.$store.state.vuex_userInfo.extInfo.userExtInfo.headImage = ret.data
|
|
|
|
+ saveHeadImage({photo: ret.data}).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: "none",
|
|
icon: "none",
|