Fork me on GitHub

vue-element-dialog使用

    logout() {
      this.$confirm("你确定退出吗?", "提示:", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(x => {
        localStorage.removeItem("token");
        location.reload();
      });
    }

 

posted @ 2018-11-20 15:50  欢欢11  阅读(596)  评论(0编辑  收藏  举报