How to use the iview/src/components/message.error function in iview

To help you get started, we’ve selected a few iview examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aniiantt / updrive / src / renderer / api / message.js View on Github external
error(config) {
    if (typeof config === 'string')
      return message.error({
        content: config,
        duration: 5,
      })
    if (typeof config === 'object')
      return message.error({
        duration: 5,
        ...config,
      })
  },
  loading(config) {
github rijn / nodecho / src / components / AdminPost.vue View on Github external
.catch(err => {
                    Message.error(err.body.error);
                });
        },
github rijn / nodecho / src / components / Post.vue View on Github external
.catch(err => {
                    this.loading = false;
                    this.message = err.body.error;
                    if (err.status !== 401) {
                        Message.error(err.body.error);
                        return;
                    }
                    if (err.body.passwordRequired) {
                        this.auth.passwordRequired = true;
                    } else {
                        this.auth.private = true;
                    }
                });
        },
github rijn / nodecho / src / components / AdminEdit.vue View on Github external
.catch(err => {
                        Message.error(err.body.error);
                    });
            } else {
github rijn / nodecho / src / components / Auth.vue View on Github external
.catch(res => {
                        Message.error(res.body.error);
                    });
            } else {