Commit c6d28921 by Sendya

fix: #26 toastr

parent e8725a0a
......@@ -114,7 +114,7 @@ yarn run lint
- [Table 重封装组件](https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md)
- [ANTD 默认配置项](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultConfig.js)
- [ANTD 默认配置项](https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js)
- 其他待补充...
......
......@@ -244,7 +244,10 @@
loginSuccess () {
this.loginBtn = false
this.$router.push({ name: "dashboard" })
this.$message.success(timeFix() + ',欢迎回来', 3)
this.$notification.success({
message: '欢迎',
description: `${timeFix()},欢迎回来`,
});
},
requestFailed (err) {
this.$notification[ 'error' ]({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment