-
新增
+
+ 新增
@@ -196,12 +198,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -268,7 +271,7 @@ export default {
{name:'积分',icon:'el-icon-s-data',path:'/Integral'},
{name:'交班',icon: 'el-icon-s-flag',path:'/Handover'},
],
- leftindex:'',
+ leftindex:0,
oilList:[
{color:'#e5f0ff'},
{color:'#fff2e5'},
@@ -669,8 +672,17 @@ export default {
this.getCartList();
}
},
- logout() {
- this.$router.push( '/' );
+ async logout() {
+ this.$confirm('确定注销并退出系统吗?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ removeUserId();
+ this.$store.dispatch('LogOut').then(() => {
+ location.href = '/';
+ })
+ }).catch(() => {});
},
// 发起结算
doSettlement() {
diff --git a/fuintCashierWeb/src/views/login/index.vue b/fuintCashierWeb/src/views/login/index.vue
index 0a7f0dffb..a87274387 100644
--- a/fuintCashierWeb/src/views/login/index.vue
+++ b/fuintCashierWeb/src/views/login/index.vue
@@ -40,7 +40,7 @@