yc-ui2 0.1.2-beta21 → 0.1.2-beta23

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.2-beta21",
3
+ "version": "0.1.2-beta23",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
package/src/App.vue CHANGED
@@ -46,23 +46,12 @@ export default {
46
46
  },
47
47
  methods: {
48
48
  login(value, back) {
49
- back(value)
50
- // this.$store
51
- // .dispatch("CALogin", this.loginForm)
52
- // .then(() => {
53
- // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
54
- // })
55
- // .catch(() => {
56
- // this.loading = false
57
- // })
58
- // this.$store
59
- // .dispatch("CALogin", this.loginForm)
60
- // .then(() => {
61
- // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
62
- // })
63
- // .catch(() => {
64
- // this.loading = false
65
- // })
49
+ this.$store
50
+ .dispatch("CALogin", value)
51
+ .then(() => {
52
+ this.$router.push({ path: this.redirect || "/" }).catch(() => {})
53
+ })
54
+ .finally(() => back(value))
66
55
  },
67
56
  },
68
57
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file