Browse Source

代他操作跳转拦截

yuwenjun1997 2 năm trước cách đây
mục cha
commit
94dbfe6b4c
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/views/admin/supplier/index.vue

+ 6 - 0
src/views/admin/supplier/index.vue

@@ -223,6 +223,12 @@ export default {
         this.$message.info('已取消操作')
       })
       if (text !== 'confirm') return
+
+      if (!item.shopStatus) {
+        this.$message.warning('当前供应商未启用')
+        return
+      }
+
       console.log(item)
       // 要执行的操作
       this.$store.commit('proxy/OPEN_PROXY', item)