|
@@ -178,25 +178,25 @@
|
|
|
},
|
|
|
handleLogout() {
|
|
|
const that = this
|
|
|
-
|
|
|
- this.$confirm({
|
|
|
- title: '提示',
|
|
|
- content: '真的要注销登录吗 ?',
|
|
|
- onOk() {
|
|
|
- return that.Logout({}).then(() => {
|
|
|
- // update-begin author:scott date:20211223 for:【JTC-198】退出登录体验不好
|
|
|
- //that.$router.push({ path: '/user/login' });
|
|
|
- window.location.reload()
|
|
|
- // update-end author:scott date:20211223 for:【JTC-198】退出登录体验不好
|
|
|
- }).catch(err => {
|
|
|
- that.$message.error({
|
|
|
- title: '错误',
|
|
|
- description: err.message
|
|
|
- })
|
|
|
+ this.$confirm('真的要退出登录吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ return that.Logout({}).then(() => {
|
|
|
+ // update-begin author:scott date:20211223 for:【JTC-198】退出登录体验不好
|
|
|
+ that.$router.push({ path: '/user/login' });
|
|
|
+ this.$router.push({ name: 'firstIndex' })
|
|
|
+ window.location.reload()
|
|
|
+ // update-end author:scott date:20211223 for:【JTC-198】退出登录体验不好
|
|
|
+ }).catch(err => {
|
|
|
+ that.$message.error({
|
|
|
+ title: '错误',
|
|
|
+ description: err.message
|
|
|
})
|
|
|
- },
|
|
|
- onCancel() {
|
|
|
- },
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
updatePassword(){
|