N
N
nen0y2020-08-17 16:28:56
Vue.js
nen0y, 2020-08-17 16:28:56

Why is vue-notification not displaying text?

Code on TS:

async sendRequest(ctx?: any, payload?: any) {
      const response = await requestToApi(
        "/api/login/...,
        "post",
        false,
        payload
      );
      if (response.token !== null) {
        ctx.commit("updateToken", response.token);
      } else {
        Vue.notify({
          group: "auth",
          type: "error",
          title: "No authorize",
          text: "Please sign in!"
        });
      }
    }


Conclusion: 5f3a8615820c8926881776.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question