shish 2 лет назад
Родитель
Сommit
be916a524a
1 измененных файлов с 13 добавлено и 1 удалено
  1. 13 1
      hdApp/src/admin/home/workbench.vue

+ 13 - 1
hdApp/src/admin/home/workbench.vue

@@ -337,7 +337,7 @@ export default {
     goMore(){
       let that = this
       uni.showActionSheet({
-        itemList: ['已屏蔽列表', '改进建议','开关商城','申请批发店系统','修改密码'],
+        itemList: ['已屏蔽列表', '改进建议','开关商城','申请批发店系统','修改密码','退出登录'],
         success: function (res) {
           if(res.tapIndex == 0){
             that.$util.pageTo({url: '/pagesPurchase/pb'})
@@ -354,6 +354,18 @@ export default {
           if(res.tapIndex == 4){
             that.$util.pageTo({url:'/admin/shop/password'})
           }
+          if(res.tapIndex == 5){
+            // #ifdef APP-PLUS
+            that.$util.confirmModal({content:'确认退出?'},() => {
+                  uni.clearStorage()
+                  that.$store.commit("setLoginInfo", {})
+                  plus.runtime.restart()
+            })
+            // #endif
+            // #ifdef MP-WEIXIN
+            that.$msg('开发中')
+            // #endif
+          }
         }
       });
     },