mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交退出登录接口
This commit is contained in:
@@ -48,9 +48,7 @@
|
||||
<view class="u-demo-block__content">
|
||||
<u-cell-group>
|
||||
<!-- <u-cell title="语言设置" v-model="userInfoObj.name"></u-cell>
|
||||
|
||||
<u-cell title="位置" v-model="userInfoObj.name"></u-cell> -->
|
||||
|
||||
<u-cell @click="toRouter('next')" title="修改密码" :isLink="true" arrow-direction="left" v-model="userInfoObj.account.passValue"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
@@ -93,8 +91,6 @@
|
||||
this.imgurl = rs.avatar;
|
||||
this.load();
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
onLoad(){
|
||||
//this.load()
|
||||
@@ -102,10 +98,7 @@
|
||||
methods: {
|
||||
logout() {
|
||||
this.clearShow=true;
|
||||
apiUserbasic.logout();
|
||||
|
||||
},
|
||||
|
||||
updateHeadImg() {
|
||||
let self=this;
|
||||
if (this.fSelecting) return;
|
||||
@@ -159,11 +152,9 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
confirmClear(){
|
||||
let that = this;
|
||||
that.$store.dispatch("LogOut").then(rs => {
|
||||
that.$store.dispatch("LogOut").then(rs =>{
|
||||
that.clearShow=false;
|
||||
if(rs.status==200){
|
||||
let loginPath=this.$config.loginPath;
|
||||
|
||||
Reference in New Issue
Block a user