yc-ui2 0.1.2-beta21 → 0.1.2-beta22

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -114,7 +114,7 @@ const whiteList = ['/login', '......', '/question']
114
114
  <YcQuestion
115
115
  title="小优客服"
116
116
  commit="小优为您提供24小时服务"
117
- :json="JSON.stringify(require('@/assets/files/questions.js').default)"
117
+ :json="JSON.stringify(require('@/assets/questions.js').default)"
118
118
  ></YcQuestion>
119
119
  </template>
120
120
  ```
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-beta22",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
package/src/App.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="yc-ui2">
3
- <!-- <YcSlideVerify /> -->
3
+ <YcSlideVerify />
4
4
  <router-view></router-view>
5
5
  <YcCustomerService
6
6
  title="小优客服【38号为您服务】"
@@ -27,7 +27,7 @@
27
27
  export default {
28
28
  name: "App",
29
29
  components: {
30
- // YcSlideVerify: () => import("comp/YcSlideVerify"),
30
+ YcSlideVerify: () => import("comp/YcSlideVerify"),
31
31
  YcCustomerService: () => import("comp/YcCustomerService"),
32
32
  YcCA: () => import("comp/YcCA"),
33
33
  },
@@ -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