vux使用过程中遇到的问题

1.  vue vux使用,$vux.confirm如何停止往下运行

     参考:https://www.imooc.com/wenda/detail/534692

    

<template>

</template>

<script>
  export default {
    name: "test",
    method: {
      testConfirm() {
        if (condition1) {
          return true
        } else {
          return new Promise((resolve, reject) => {
            this.$vux.confirm.show({
              title: '提示',
              content: '是否继续?',
              onCancel() {
                // 取消返回false
                resolve(false)
              },
              onConfirm() {
                // 取消返回true
                resolve(true)
              }
            })
          })
        }

      }
    } 
  }
</script>

<style scoped>

</style>

2. 待完善

原文地址:https://www.cnblogs.com/lvlin241/p/13962294.html