Stories

Detail Return Return

在validate校驗函數內,使用async異步函數 - Stories Detail

在validate校驗函數內,使用async異步函數

    

    async handleLogin() {
      this.$refs.form.validate(async (valid) => {
        if (valid) {
          // 獲取公鑰
          await this.getEncrypte()
        }
      })
    },
user avatar gkymfrg1 Avatar decaday Avatar
Favorites 2 users favorite the story!
Favorites

Add a new Comments

Some HTML is okay.