瀏覽代碼

fix: #26 toastr

Sendya 6 年之前
父節點
當前提交
c3fe3d8976
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1 1
      README.md
  2. 4 1
      src/views/user/Login.vue

+ 1 - 1
README.md

@@ -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)
 
 - 其他待补充...
 

+ 4 - 1
src/views/user/Login.vue

@@ -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' ]({