chenlu
2024-05-21 18fb477ea840e3dd4b19ff63f68f994d31fab43b
north-glass-erp/northglass-erp/src/views/sd/customer/SelectCustomer.vue
@@ -13,7 +13,6 @@
const { t } = useI18n()
const userStore = useUserInfoStore()
console.log(userStore.user.permissions)
const username = userStore.user.userName
const userid = userStore.user.userId
let router=useRouter()
@@ -47,13 +46,16 @@
      })
      request.post("/customer/deleteCustomer", flowData.value).then((res) => {
        if(res.code==200){
        if(res.code==200 && res.data===true){
          ElMessage.success("删除成功")
          router.push({path:'/main/customer/selectCustomer',query:{random:Math.random()}})
        }else{
          ElMessage.warning(res.msg)
          ElMessage.warning("删除失败")
          router.push("/login")
        }
      }).catch((err)=>{
        ElMessage.error('系统错误')
        router.push("/login")
      })
      break
    }